This question is locked. New answers and comments are not allowed.
Hi,
Changes are not possible if the primary key fields are notvisible.
I am using Telerik OpenAccess Domain model in a class library and my front end application is an ASP.NET application.I have an entity in the model called 'Desktop' whose primary key property is 'InventoryId' , and which has the properties: InventoryId, Model, Proccessor.
I am using OpenAccess Data source to bind a FormView to the data entity.The DataKeyNames property is set properly on the FormView (DataKeyNames="InventoryId") but as soon as i call FormView.InsertItem(true), I get the following error:
Changes are not possible if the primary key fields are notvisible.
Please specify the id and version fields in the persistentattribute.
[Telerik.OpenAccess.Persistent(IdentityFied="id",VersionField="version"]
Any ideas on this.?
Thanks