asp.net - Cannot implicitly convert type 'string' to 'System.Collections.Generic.ICollection<WebApplication2.Entry>' -
i used ado.net entity framework connect database , have .edmx file in project.. when tried reach objects in code side object initializer can see object names when tried enter value textarea in throws error.title table in database , entries tables data because of both tables has relationship can see entries down of title. have do? not understand anything.. helps here situation
title = new title { entries=textarea.innertext, };
try below, need inititialize entry
collection item giving correct property value
title = new title { entries= new list<entry>() { new entry() {propertyname =textarea.innertext} }; };
Comments
Post a Comment