Solved

getting code generated classes into seperate files

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

696 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