2

I have ObjectContext named for example MyEntities. There is also some entities, let's say they are Entity1 and Entity2. I want to make MyEntities internal. Entity1 and Entity2 must be public. Is it possible?

1 Answer 1

5

If you are using Entity Framework v4 and Visual Studio 2010, then access mode can be set in design time using Entity Designer by setting the necessary value to the Entity Container Access property of the model.
If you are using EF v1 and Visual Studio 2008, then you'll have to use external code generation mechanisms like T4 templates.

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

Comments

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.