Greetings,
I have simple table called Country for example.
this table include 2 columns:
ID is identical,
CountryName.
when fetching a record from database and copy this record in a new entity it throw exception that ID is read only
how to get over read only problem ??
really i need to copy add data in new entity
public static void CopyEntity<T>(T source, T destination) where T : IEntity2
{
foreach (EntityField2 item in source.Fields)
destination.Fields[item.Name].CurrentValue = item.CurrentValue;
}
Using
Adapter mode
LLBL 2.6
Database SQL2008