Click here to Skip to main content
13,507,742 members
Rate this:
Please Sign up or sign in to vote.
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.[^]

Posted 15-Nov-12 23:13pm

1 solution

Rate this: bad
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)
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180417.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2018
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