[英]Entity Framework files are not nested under the EDMX file
編輯.csproj並確保在<Content Include="Model.tt">
下具有"DependentUpon>Model.edmx</DependentUpon>"
。 如果找不到,請添加DependentUpon標記並保存.csproj文件。
<Content Include="Model.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<DependentUpon>Model.edmx</DependentUpon>
<LastGenOutput>Model.cs</LastGenOutput>
</Content>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.