private void setIdCatalog() { if (objectSpace != null && !objectSpace.IsObjectToDelete(this) && !this.IdCatalog.HasValue) { this.IdCatalog = DbMethods.Registration(ID_DIRECTORY_TYPE).Value; } }
void IXafEntityObject.OnSaving() { if (objectSpace != null && !objectSpace.IsObjectToDelete(this) && !this.IdCatalog.HasValue) { this.IdCatalog = DbMethods.Registration(ID_DIRECTORY_TYPE).Value; } }