【发布时间】:2011-06-09 16:40:17
【问题描述】:
配置属性时(Name为String,RowVersion为Byte)
这行得通:
Me.Property(Function(t) t.Name).IsRequired().IsFixedLength.HasMaxLength(10)
但这给了我一个错误:
Me.Property(Function(t) t.RowVersion).IsRequired().IsFixedLength().HasMaxLength(8)
错误是:
'IsFixedLength' 不是 'System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration'
有什么建议吗?
【问题讨论】:
标签: entity-framework entity-framework-4.1