Page 1 of 1

n-Tier Environment with Client Query

Posted: Sun 10 Mar 2013 16:12
by Zero-G.
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.

Re: n-Tier Environment with Client Query

Posted: Mon 11 Mar 2013 14:31
by MariiaI
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.

Re: n-Tier Environment with Client Query

Posted: Tue 12 Mar 2013 15:29
by Zero-G.
Hey

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

THX a lot

Re: n-Tier Environment with Client Query

Posted: Thu 14 Mar 2013 14:29
by MariiaI
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.