Solved

getting code generated classes into seperate files

Posted on 2012-03-23
2
150 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
  • 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 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now