开发者

VS.Net 2010 Entity Framework File Not Nesting Correctly

I have a kind of silly question, but it's annoying me and I can't seem to find an answer. In Visual Studio 2010 I have several Entity Framework (v4) .edmx files. With one exception, they all nest their related designer.vb file so they only show as one file. I'm wondering if there is something I can do to make that last one nest like the开发者_运维技巧 others so it looks cleaner.

Any help would be appreciated. Thanks.


You may be able to edit your project file (i.e. csproj, vbproj) using Notepad and manually nest files. The syntax looks like:

<Compile Include="MyPath\MyFile.cs" />
<Compile Include="MyPath\MyNestedFile.cs">
  <DependentUpon>MyFile.cs</DependentUpon>
</Compile>

Ofcourse, the extensions can be changed, as well as the paths.

VS Commands also has a feature to do this via Visual Studio, but I'm not sure it would work in your case.

More information can be found here and here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜