【发布时间】:2025-12-09 14:35:01
【问题描述】:
我对@987654322@ 框架非常陌生,我收到以下错误
The type 'Edm.Byte' of the member 'IsActive' in the conceptual side type
NopSolutions.NopCommerce.BusinessLogic.Data.Language' does not match with the type
System.Boolean' of the member 'IsActive' on the object side type NopSolutions.NopCommerce.BusinessLogic.Directory.Language'.
据我了解,在关联 edm 和 object 的数据类型方面存在一些缺失/p>
但我在数据库表中创建了一个位类型的列,并在langauge.cs 中声明了
public bool IsActive { get; set; }
我可以在这里发布任何需要的细节
编辑:
当我在 Google 上搜索时,我在 * 上发现了这个问题
et-model-property-to-boolean-in-entity-framework 将 Byte 更改为 Boolean 以映射 tinyint
但在我的情况下,我在数据库中也有一点。
【问题讨论】:
标签: entity-framework ado.net nopcommerce