// =============================================================================== // Query Update // ============ public int QueryUpdate(Dch従業員職位履歴台帳 dch従業員職位履歴台帳, Dch従業員職位履歴台帳CB cb) { AssertObjectNotNull("dch従業員職位履歴台帳", dch従業員職位履歴台帳); AssertConditionBeanNotNull(cb); SetupCommonColumnOfUpdateIfNeeds(dch従業員職位履歴台帳); FilterEntityOfUpdate(dch従業員職位履歴台帳); AssertEntityOfUpdate(dch従業員職位履歴台帳); return(this.Dao.UpdateByQuery(cb, dch従業員職位履歴台帳)); }
protected int DelegateDelete(Dch従業員職位履歴台帳 e) { if (!ProcessBeforeDelete(e)) { return(1); } return(this.Dao.DeleteNonstrict(e)); }
protected int DelegateUpdate(Dch従業員職位履歴台帳 e) { if (!ProcessBeforeUpdate(e)) { return(1); } return(this.Dao.UpdateNonstrictModifiedOnly(e)); }
protected int DelegateInsert(Dch従業員職位履歴台帳 e) { if (!ProcessBeforeInsert(e)) { return(1); } return(this.Dao.Insert(e)); }
public virtual Dch従業員職位履歴台帳 SelectEntityWithDeletedCheck(Dch従業員職位履歴台帳CB cb) { AssertConditionBeanNotNull(cb); Dch従業員職位履歴台帳 entity = SelectEntity(cb); AssertEntityNotDeleted(entity, cb); return(entity); }
public virtual void Update(Dch従業員職位履歴台帳 entity) { AssertEntityNotNull(entity); AssertEntityHasVersionNoValue(entity); AssertEntityHasUpdateDateValue(entity); int updatedCount = this.DelegateUpdate(entity); AssertUpdatedEntity(entity, updatedCount); }
public virtual void Delete(Dch従業員職位履歴台帳 entity) { HelpDeleteInternally <Dch従業員職位履歴台帳>(entity, new MyInternalDeleteCallback(this)); }
public void InsertOrUpdate(Dch従業員職位履歴台帳 entity) { HelpInsertOrUpdateInternally <Dch従業員職位履歴台帳, Dch従業員職位履歴台帳CB>(entity, new MyInternalInsertOrUpdateCallback(this)); }
// =============================================================================== // Entity Update // ============= #region Basic Entity Update public virtual void Insert(Dch従業員職位履歴台帳 entity) { AssertEntityNotNull(entity); this.DelegateInsert(entity); }
protected override void SetupNextValueToPrimaryKey(Entity entity) // Very Internal { Dch従業員職位履歴台帳 myEntity = (Dch従業員職位履歴台帳)entity; myEntity.Id = SelectNextVal(); }