0

我有一个自动生成的文件,称为 Core.Views.cs,在我们有一个 Core.edmx 文件的文件夹中。这看起来像是与实体框架相关的东西,尽管我之前没有遇到过这种特定类型的自动生成文件。文件开头是这样的:

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.296
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

[assembly: System.Data.Mapping.EntityViewGenerationAttribute(typeof(Edm_EntityMappingGeneratedViews.ViewsForBaseEntitySetsA6A322F63F6E541F50AC0C3927F34D34A0332BA66EF2300CE900CF04516540EA))]

namespace Edm_EntityMappingGeneratedViews
{
  • 如果我将它签入源代码控制,它会破坏我们的 TFS 构建,因为构建过程似乎正在尝试重新生成文件,因此它会产生冲突
  • 这个文件有什么作用,它是否总是可靠地从源代码重新生成?
4

0 回答 0