Print Page | Close Window

DF tt not setting Entity Container Access properly

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3096
Printed Date: 13-May-2026 at 3:08pm


Topic: DF tt not setting Entity Container Access properly
Posted By: scottarlp
Subject: DF tt not setting Entity Container Access properly
Date Posted: 15-Nov-2011 at 9:36am
I can't get the Entity Container Access property to honor the value of 'Internal'. It still generates the container as public. Is this a bug or intended? Using 6.1.3.1.



Replies:
Posted By: DenisK
Date Posted: 15-Nov-2011 at 4:48pm
Hi scottarlp;

Apparently it's neither. We just didn't implement it as so. I have added this as a feature request which should be implemented in 6.1.4 or 6.1.5.

For the time being, you can do one of the 2 workarounds:

1. Manually change the access type.

or

2. Customize the code generation using the attached .tt file.  uploads/912/Model1.edmx.tt.zip - uploads/912/Model1.edmx.tt.zip

And just in case you're not familiar with customizing code generation, here's a write up from our DRC.  http://drc.ideablade.com/xwiki/bin/view/Documentation/custom-code-generation-template - http://drc.ideablade.com/xwiki/bin/view/Documentation/custom-code-generation-template



Print Page | Close Window