Hi i want to make dal layer in my project please help
Hello,
A very simple way is that you can right click your project and choose to create a New Item of cs file, within the file you can write down codes to create a static class with static methods including CRUD ones. And then in these methods you can use LINQ-TO-SQL,
LINQ-TO-ENTITYFRAMEWORK, general ADO.NET or other techonologies to interact with the layer db of SQL or other databases.
And what's more, you can also use ObjectDatasource to bind CRUD methods.
yogeshweb
Member
48 Points
84 Posts
How to make a DAL Layer
Nov 28, 2012 05:23 AM|LINK
Hi i want to make dal layer in my project please help
CruzerB
Contributor
5399 Points
1098 Posts
Re: How to make a DAL Layer
Nov 28, 2012 05:36 AM|LINK
Hi,
You may wanna try out this awesome tool. It can help to have more understanding on layering to your solution.
http://layerguidance.codeplex.com/
My Technical Blog
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: How to make a DAL Layer
Nov 29, 2012 12:27 AM|LINK
Hello,
A very simple way is that you can right click your project and choose to create a New Item of cs file, within the file you can write down codes to create a static class with static methods including CRUD ones. And then in these methods you can use LINQ-TO-SQL, LINQ-TO-ENTITYFRAMEWORK, general ADO.NET or other techonologies to interact with the layer db of SQL or other databases.
And what's more, you can also use ObjectDatasource to bind CRUD methods.