私は私のモデルクラスでのcharデータ型に列をマップしようとすると、私はエラーを取得する:Entity Frameworkのコードファーストで有効なプリミティブプロパティは何ですか?
The property '[ColumnName]' is not a declared property on type '[ClassName]'. Verify that the property has not been explicitly excluded from the model by using the Ignore method or NotMappedAttribute data annotation. Make sure that it is a valid primitive property.
EFコードファーストの有効なプリミティブ型は何ですか?
Hehe「EFコードファーストの有効なプリミティブタイプは何ですか?」 – X181
ヒント:プライベートセッターを持つプロパティがある場合でもエラーが発生します。私の場合、プロパティは基本クラスにありました。 – X181