Hi,
my development-environment: visualstudio 2022, net-framework 4.8, entity framework core 3
I use the SfDataGrid to display data from a MySQL database (2 tables, 1:n relationship). I use the EntityFramwork with activated LazyLoading as data model.
LazyLoading, because I do not want to explicitly load the 1:n data via .Include(“”) etc..
Reading / displaying is no problem at all, it works wonderfully.
But, I cannot add new data records (neither via AddNewRow, nor via code .Add(...)), here I always get the error:
Example: “The object with the type ‘BookEntryItem’ cannot be converted to the type ‘Castle.Proxies.BookEntryItemProxy’”
Do you have a small example for a sfdatagrid in combination with entity framework, lazyloading and add records?
Or is it not possible to add a record if LazyLoading is activated, but I have not found any information at Microsoft or in other forums.
many greetings Danie