-
Notifications
You must be signed in to change notification settings - Fork 0
IMerlinObject
Squil11ams edited this page Nov 9, 2022
·
1 revision
This interface is used by the QueryEngine and contains 1 method.
void SetDataObject(IDataReader data, int flag, string prefix);
This method is called from the QueryEngine after it instantiates a new instance.
The purpose is to populate the fields within the object with data from the database.
This could be an automated process by using MerlinModelBase or could be a manual process if you requirements are too complex.
You could also just override the SetDataObject method in MerlinModelBase to apply any specific logic before calling base.SetDataObject() or omit it altogether.