Solved

getting code generated classes into seperate files

Posted on 2012-03-23
2
148 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

18 Experts available now in Live!

Get 1:1 Help Now