Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 16-Nov-12 0:13am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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)
  Permalink  
Comments
Prathap Gangireddy at 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)

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,192
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100