n-Tier Environment with Client Query

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

n-Tier Environment with Client Query

Post by Zero-G. » Sun 10 Mar 2013 16:12

Hey

I wanted to know, if you plan (or maybe it is still possible?), that in an n-Tier Environment Client side Linq's can be executed!?

Example: Using an ASP.NET Web Project for Holding all the Database related staff and on Client side (WPF, WinForms, ...)can all be queried by Linq-Statements.

THX a lot for Information about this.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: n-Tier Environment with Client Query

Post by MariiaI » Mon 11 Mar 2013 14:31

Could you please specify the scenario you want to implement in more details?
For example, you can use WCF Data services to separate working with the database from your client application. In this case, the actual database interoperations reside at the server side, while at the client side you can perform LINQ queries to the service 'tables'. If this is the scenario you are interested in, we can send you an example which demonstrates how to implement it.

Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Re: n-Tier Environment with Client Query

Post by Zero-G. » Tue 12 Mar 2013 15:29

Hey

Yes, that's the correct sample, I was looking for.
Please send me a sample - if possible in VB.NET

THX a lot

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: n-Tier Environment with Client Query

Post by MariiaI » Thu 14 Mar 2013 14:29

We have sent you a sample project to the e-mail address you provided in your forum profile, please check that the letter is not blocked by your mail filter.

In this sample we create WcfDataService based on the DataService class. To enable update operations on this service we implement an IUpdatable interface and an auxiliary class ServiceDataContext, which inherits from Devart.Data.Linq.DataContext. In the SampleConsole.Module1 creation of DataContext and LINQ queries are demonstrated.

Please tell us if this helps.

Post Reply