Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello

i need help plz , How can i create Data layer Class that make me work with object from this class as aDataBase Table .

for Example: ClassDB MyClass = new ClassDB("dbo.Tbl1");

and from this class i can handle any task with the Data Base (Insert -Updatee-Delete-Select -Etc......)

hope that i can explane it well

waiting for the answer

Best Regards
Posted

This[^] tutorial is perhaps a very detailed one that should help you out.
 
Share this answer
 
Comments
Monjurul Habib 10-Jul-11 5:48am    
nice link, my 5.
Abhinav S 10-Jul-11 5:55am    
Thank you.
ehab_developer 17-Jul-11 9:26am    
Hello
First i'm sorry for late , second what i need is DAL Completed class that depend on Writing Code and stored procedures and an example of how can i implement it , Thanks
Abhinav S 17-Jul-11 10:21am    
There are a couple of links that could help you out -
http://www.codeproject.com/KB/cs/dalmethodcodegenerator.aspx
http://www.codeproject.com/KB/database/Lightweight_DAL_in_NET_2.aspx

But seriously, you should give it a try on your own.
ehab_developer 20-Jul-11 8:57am    
I gonna Check it Thanks
Another link here
OR
Have a look here.
 
Share this answer
 
Comments
Abhinav S 10-Jul-11 5:55am    
Yup good links. My 5.
Monjurul Habib 10-Jul-11 12:01pm    
Thank you.
ehab_developer 17-Jul-11 9:26am    
Hello First i'm sorry for late , second what i need is DAL Completed class that depend on Writing Code and stored procedures and an example of how can i implement it , Thanks
use LINQ to SQL for any kind of database operation (Insert, Update, delete etc). for sample code of Linq to sql visit
Accessing Data using Language Integrated Query (LINQ) in ASP.NET WebPages – Part 2[^]
LINQ to SQL: Basic Concepts and Features[^]
LINQ to SQL[^]


Thanks
 
Share this answer
 
Comments
ehab_developer 17-Jul-11 9:31am    
Hello
First i'm sorry for late , i'm little new with Linq but i gonna check ur links , but plz can any one tell me what the best way to work with database and the applied way by the professionals work by dataset or wizard like it(Without Writing Code) or writing C# Code ,Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900