1
rowversion 열에 관한 Entity Framework에 대한 일종의 컨벤션 오버 구성이 있습니까? 따라서 타임 스탬프 속성에 어떤 속성도 넣을 필요가 없습니다.Entity Framework의 rowversion 규칙 이상 구성
public class ProductId
{
// [Key] // This is optional, EF automatically picks up
// ProductId as primary key
public int ProductId { get; set; }
public int ProductName { get; set; }
// I want to remove Timestamp attribute,
// Fluent NHibernate CoC automatically picks up property with name of
// Version as the rowversion property
[Timestamp]
public byte[] Version { get; set; }
}
앞으로 Entity Framework에서 모든 클래스의 Fluent NHibernate 규칙을 재정의 할 수 있기를 바랍니다. – Hao