...
There are four methods on which developer can work.These are:
Before Save:
| If user wants to add some business logic before saving the data, then use BeforeSave() method.
|
Before Delete:
| If user wants to add some business logic before deleting the data, then use BeforeDelete() method.
|
After Save:
| If user wants to add some business logic after saving the data, then use AfterSave() method.
|
After Delete:
| If user wants to add some business logic after deleting the data, then use AfterDelete() method.
|
It It has two default parameterize constructors as show in below pic.
...
This constructoris used to get a particular record based on Record_ID passed to it and also used to create new new record in that table.
If you know a particular Record_ID then this constructor will return that record.
If you pass 0 as Record_ID then it will create a new Record. That record will be saved into database when you you call save function with instance of that class.
...