开发者

Entity Framework This property descriptor does not support the SetValue

below are my entities which i have created using entity frame work.

retailer id name childs(navigation)

generated database schema

[Id] [int] IDENTITY(1,1) NOT NULL, [Name] nvarchar NOT NULL

childern id name RETAILER(navigation)

generated database schema

[Id] [int] IDENTITY(1,1) NOT NULL, [name] nvarchar NOT NULL [Retailer_Id] [int] NOT NULL,

As you can see in the above model the relationship is 1 retail开发者_运维百科er can have 0 or 1 child. my problem is when i create a new child and set the retailer navigation property of it to a retailer entity it throws the following exception.how do i solve it

Error while setting property 'retailer': 'This property descriptor does not support the SetValue method.'.


Does the Retailer navigation property have its Setter property set to Public?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜