?
Solved

getting code generated classes into seperate files

Posted on 2012-03-23
2
Medium Priority
?
155 Views
Last Modified: 2012-04-15
Hi,

I have my .edmx and generate pocos using the dbcontext generator.

I have two problems.

The classes are all in one file and secondly above each of the classes I'm getting my using statements which as they are in there multiple times is erroring so I have to remove them every time.

I'm not used to templates yet so can someone tell me what I'm doing wrong?

Thanks
0
Comment
Question by:scm0sml
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37760827
I don't use the Entity Framework very much, but I believe that there is an option to have separate class files generated.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 total points
ID: 37760829
I think this is what I was thinking of:

How to Separate Self-Tracking Entities to Their Own Class Library
http://www.codeproject.com/Articles/133689/How-to-Separate-Self-Tracking-Entities-to-Their-Ow
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question