Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have found a video to create N-Layer application.As shown in the video author was able to drag and drop northwind database table onto XML SCHEMA file.I think he is using VS 2002 or 2003.

I am not able to do the same in Visual Studio 2010.Is this not possible in VS2010.If not possible, let me know how to do the same because creating a class with a large no of fields and properties is time consuming.Please provide an alternative.

http://www.xmlforasp.net/codesection.aspx?csID=130[^]

---Prathap
Posted

1 solution

Here is a link that gives an idea on N layer design:

Creating ASP.NET Applications with N-Tier Architecture[^]

and coming to your original problem. Why not use any ORM like entity framework to generate these DB classes for you. here are few articles to read on that.

An Introduction to Entity Framework for Absolute Beginners[^]
A Beginner's Tutorial on Performing Validations in Entity Framework using Partial Methods[^]

First link is tutorial on Entity framework. Second one is specific to Validation in EF but if you download that sample project that will contain a Data access layer as a separate DLL using Entity framework(so you might find it useful too)
 
Share this answer
 
Comments
Prathap Gangireddy 16-Nov-12 6:09am    
Thanks Rahul.

I already knew about EF. I just wanted to know why I am not able to drag the tables on XML Schema.

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