How to move from LINQ to SQL to “LINQ to WCF”?

后端 未结 4 1245
自闭症患者
自闭症患者 2021-02-09 04:25

I\'m putting together a WPF application which will eventually use WCF web services as its data source.

During the prototyping phase, I\'m using LINQ to SQL on an SQL 200

4条回答
  •  温柔的废话
    2021-02-09 05:12

    Have you had a look at ADO.NET Data services. Here you can query a data store over the wire with linq syntax.

    You'll keep the LINQ to SQL data context but expose it to the web and allow your clients to query the context in standard LINQ statements. You would obviously have to secure the Data Services so only authorised clients can connect but essentially with minimal work you are able to get your data context "client side" so to speak.

提交回复
热议问题