Entity framework 4 如何修复Visual Studio错误列表窗口中实体框架引发的错误6036

Entity framework 4 如何修复Visual Studio错误列表窗口中实体框架引发的错误6036,entity-framework-4,edmx,Entity Framework 4,Edmx,我更改了我的edmx文件,以便所有EF类都是内部的。在类中,所有属性都标记为public。项目已编译,但我在VisualStudio的“错误列表”窗口中收到错误消息 Error 6036: EntityType 'A' has 'internal' accessibility and EntitySet 'B' has a get property with 'public' accessibility. The get property of the EntitySet must not ha

我更改了我的edmx文件,以便所有EF类都是内部的。在类中,所有属性都标记为public。项目已编译,但我在VisualStudio的“错误列表”窗口中收到错误消息

Error 6036: EntityType 'A' has 'internal' accessibility and EntitySet 'B' has a get property with 'public' accessibility. The get property of the EntitySet must not have less restrictive access than the containing EntityType has.   
基本上我有这种情况

        internal class A
        {
        }

        internal class B
        {
            public A A
            {
                get { return new A(); }
            }
        }

这段代码编译起来没有任何问题。

您看到了吗:?谢谢链接。看起来是同样的问题。不过,我不再处理这个问题了。