In which layer LINQ sholud be used

Posted by Ray.Chayan under C# on 6/26/2012 | Points: 10 | Views : 943 | Status : [Member] | Replies : 3
Among the Data access layer, Business layer and Presentation layer(.aspx page), in which layer LINQ shound be used.

Do we need to create data acces layer or retrive, update , delete data from Business layer using LINQ.

At the time of using LINQ where should I use connection string?




Responses

Posted by: Ajay.Kalol on: 6/27/2012 [Member] Starter | Points: 25

Up
0
Down
you can use Linq query wherever you want but it is fulfilled its requirement.

when you use LinqtoEntity then connection string is declared in Model.



Ajay
ajaypatelfromsanthal.blogspot.in

Ray.Chayan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gemamgall on: 6/27/2012 [Member] Starter | Points: 25

Up
0
Down
Linq is to be used in data access layer and business layer, however it's work on all three layers

Thanks and Regards,

Vinay Gandhi
www.quadtechindia.com

Ray.Chayan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jeffie on: 6/29/2012 [Member] Starter | Points: 25

Up
0
Down
If the DataBase is so heavy you can go with seperate Layer as DataAccessLayer
if not you can add it the WebSite it self.So it all depends on your or application design

Thanks
http://www.alacraft.com.au/

Ray.Chayan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response