Click here to Skip to main content
12,299,431 members (56,607 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET MVC
I needed the model class (.cs) file of all the table present in the adventure work database. Is there any link from where i can download that cs file.


thanks in advance.
Posted 4-Oct-12 2:16am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Use SQLMetal tool....it's freely available in http://msdn.microsoft.com/en-us/library/bb386987.aspx[^]

If you think this solves your question, please mark it solved.
  Permalink  
Comments
Purushottam Prajapati 5-Oct-12 0:53am
   
i tried accordingly , firstly it shows error
warning DBML1008
and also i think it will create .cs file of whole database in one but i want .cs file of each table
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

I used the entity framework reverse engineer and it worked.
  Permalink  

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 | Mobile
Web02 | 2.8.160525.2 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2016
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