How does LinqPad support WCF data services?

LinqPad supports WCF data services. If you assign a URL like http://services.odata.org/Northwind/Northwind.svc/ . It will list all available data objects, and you can query them. I assume that LinqPad generates all available data classes at runtime by reflection.Emit.

I am wondering who can show me how to do this. Or maybe someone did this before.

Any feedback is welcome.

Ying

+3
source share
2 answers

Here is what I got after learning the code using Reflector:

LinqPad EntityClassGenerator , CSharpCodeProvider. . ( , LINQ-2-SQL, .)

ODataExplorer, Vitek, , , . , REST API, LINQ. .

+2

Source: https://habr.com/ru/post/1746965/


All Articles