| Milos How-To |
| Adding More Information When a New Entity Gets Created |
VB.NET:
Protected Overrides Sub NewEntity(ByVal biz As EPS.Business.BusinessObjects.IBusinessObject ) MyBase.NewEntity(biz) Me.Name = "New Product" End Sub
C#:
protected override void NewEntity(IBusinessObject biz) { base.NewEntity (biz); this.Name = "Another new product" ; }
Note: Similar operations can be performed when the object needs to be saved. Simply overwrite the Save() method.