public DictionaryNameBase() { this.inTxn = false; this._site = null; this.entityData = new DictionaryNameEntityData(); this.backupData = null; }
void IEditableObject.BeginEdit() { if (!this.inTxn) { this.backupData = this.entityData.Clone() as DictionaryNameEntityData; this.inTxn = true; } }
public DictionaryNameBase(string dictionaryNameDictionaryNameCode, string dictionaryNameNAME, string dictionaryNameProjectCode, string dictionaryNameRemark) { this.inTxn = false; this._site = null; this.entityData = new DictionaryNameEntityData(); this.backupData = null; this.DictionaryNameCode = dictionaryNameDictionaryNameCode; this.NAME = dictionaryNameNAME; this.ProjectCode = dictionaryNameProjectCode; this.Remark = dictionaryNameRemark; }
void IEditableObject.CancelEdit() { if (this.inTxn) { this.entityData = this.backupData; this.backupData = null; this.inTxn = false; if (base.bindingIsNew && (this.parentCollection != null)) { this.parentCollection.Remove((DictionaryName)this); } } }
void IEditableObject.EndEdit() { if (this.inTxn) { this.backupData = null; if (base.IsDirty) { if (base.bindingIsNew) { this.EntityState = EntityState.Added; base.bindingIsNew = false; } else if (this.EntityState == EntityState.Unchanged) { this.EntityState = EntityState.Changed; } } base.bindingIsNew = false; this.inTxn = false; } }