1

HI ,

The designer creates Entity classes as partial when using LINQ to SQL and the Entity Framework. Is there some way we can create the Entity classes as .cs physical files while using LINQ to SQL or the Entity Framework

1
  • 1
    There are generated .cs files for the partial classes - but its done that way to allow you to extend the classes in a manner that will be preserved if (when!) you need to update the model. I think we need to have a broader explanation of the problem you have that you are trying to solve. Commented Feb 10, 2010 at 15:34

1 Answer 1

1

Are you asking for file-per-class? If so, I think Damien Guard's L2S T4 templates has an option to generate one .cs file per entity class. Check out these two blog posts:

http://damieng.com/blog/2009/01/19/linq-to-sql-templates-updated-now-on-codeplex
http://damieng.com/blog/2009/11/06/multiple-outputs-from-t4-made-easy-revisited

Sign up to request clarification or add additional context in comments.

1 Comment

Devart Entity Developer has the same option. devart.com/entityDeveloper

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.