私はADo.net entity
フレームワークに非常に慣れていないので、次のエラーが発生します
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のデータ型を関連付けることにはいくつかの欠落があります
しかし、私はビット型のデータベーステーブルに列を作成langauge.cs
し、のプロパティを宣言します
public bool IsActive { get; set; }
必要な詳細はここに投稿できます
編集 :
グーグルで検索すると、stackoverflowでこの質問が見つかりました
et-model-property-to-boolean-in-entity-frameworkは、tinyintをマッピングするためにバイトをブール値に変更します
しかし、私の場合、私がデータベースに持っているのもビットです。