Run entity setters and validations from a TEntityDataSet
Posted: Thu 13 Sep 2018 12:12
I'm evaluating EntityDac.
I would like to know how to make the entity property setter run when a value of an EntityDataSet field is modified.
I would also like to know what strategy to perform validation rules for a given entity before the data is sent to the database when the SaveOnPost property of EntityDataSet is turned on or when SubmitChanges is called in context.
If I modify the values directly in the entity, everything works fine, but when I need to use an EntityDataSet, everything seems to follow a different path.
I need to use the EntityDataSet for controls that do not support LiveBinds, such as devexpress.
Additional info: Im using Attribute-mapped objects
I would like to know how to make the entity property setter run when a value of an EntityDataSet field is modified.
I would also like to know what strategy to perform validation rules for a given entity before the data is sent to the database when the SaveOnPost property of EntityDataSet is turned on or when SubmitChanges is called in context.
If I modify the values directly in the entity, everything works fine, but when I need to use an EntityDataSet, everything seems to follow a different path.
I need to use the EntityDataSet for controls that do not support LiveBinds, such as devexpress.
Additional info: Im using Attribute-mapped objects