// ===============================================================================
 //                                                                    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);
 }