When working with a new entity (IsNew = true), during the process of making sepcialzed bindings to the Format and pase events of the gui controls, I am getting this exception:
Additional information: Property accessor 'EtsDate' on object 'AARTS.LLBLGEN.Adapter.EntityClasses.WarrantDataEntity' threw the following exception:'The entity is out of sync with its data in the database. Refetch this entity before using this in-memory instance.'
The code that triggered this is....
Binding bind = new Binding("Text",mWarrant,"ETSDate");
bind.Format += new ConvertEventHandler(Date_Format);
bind.Parse += new ConvertEventHandler(Date_Parse);
medETS.DataBindings.Add(bind);
The exception is thrown on the alst line above.
There is no record in the database for this entity (at the moment) so how do I 'resynch' it to the database?