【发布时间】:2011-08-20 08:09:11
【问题描述】:
我创建了自己的实体来配合我编写的存储过程。所述 SP 和 Entity 的映射似乎很顺利,现在我收到了这个错误(也出现了蓝色)
错误 7 错误 2019:成员映射 指定无效。方式 'Edm.Decimal[Nullable=True,DefaultValue=,Precision=19,Scale=4]' 成员“ItemPrice”的类型 'GodsCreationTaxidermyModel.StoreItem' 不兼容 'SqlServer.varchar[Nullable=True,DefaultValue=,MaxLength=15,Unicode=False,FixedLength=False]' 成员“ItemPrice”的类型 'GodsCreationTaxidermyModel.Store.StoreItems'。 F:\Projects\GodsCreationTaxidermy\GodsCreationTaxidermy.Data\GCTModel.edmx 1071 17 GodsCreationTaxidermy.Data
知道是什么原因造成的吗?
【问题讨论】:
标签: asp.net-mvc-2 entity-framework-4