// ===============================================================================
 //                                                                    Query Update
 //                                                                    ============
 public int QueryUpdate(Kbn客室利用区分 kbn客室利用区分, Kbn客室利用区分CB cb)
 {
     AssertObjectNotNull("kbn客室利用区分", kbn客室利用区分); AssertConditionBeanNotNull(cb);
     SetupCommonColumnOfUpdateIfNeeds(kbn客室利用区分);
     FilterEntityOfUpdate(kbn客室利用区分); AssertEntityOfUpdate(kbn客室利用区分);
     return(this.Dao.UpdateByQuery(cb, kbn客室利用区分));
 }
 protected int DelegateDelete(Kbn客室利用区分 e)
 {
     if (!ProcessBeforeDelete(e))
     {
         return(1);
     }
     return(this.Dao.DeleteNonstrict(e));
 }
 protected int DelegateUpdate(Kbn客室利用区分 e)
 {
     if (!ProcessBeforeUpdate(e))
     {
         return(1);
     }
     return(this.Dao.UpdateNonstrictModifiedOnly(e));
 }
 protected int DelegateInsert(Kbn客室利用区分 e)
 {
     if (!ProcessBeforeInsert(e))
     {
         return(1);
     }
     return(this.Dao.Insert(e));
 }
        public virtual Kbn客室利用区分 SelectEntityWithDeletedCheck(Kbn客室利用区分CB cb)
        {
            AssertConditionBeanNotNull(cb);
            Kbn客室利用区分 entity = SelectEntity(cb);

            AssertEntityNotDeleted(entity, cb);
            return(entity);
        }
        public virtual void Update(Kbn客室利用区分 entity)
        {
            AssertEntityNotNull(entity);
            AssertEntityHasVersionNoValue(entity);
            AssertEntityHasUpdateDateValue(entity);
            int updatedCount = this.DelegateUpdate(entity);

            AssertUpdatedEntity(entity, updatedCount);
        }
 public virtual void Delete(Kbn客室利用区分 entity)
 {
     HelpDeleteInternally <Kbn客室利用区分>(entity, new MyInternalDeleteCallback(this));
 }
 public void InsertOrUpdate(Kbn客室利用区分 entity)
 {
     HelpInsertOrUpdateInternally <Kbn客室利用区分, Kbn客室利用区分CB>(entity, new MyInternalInsertOrUpdateCallback(this));
 }
        // ===============================================================================
        //                                                                Pull out Foreign
        //                                                                ================
        #region Pullout Foreign
        #endregion


        // ===============================================================================
        //                                                                   Entity Update
        //                                                                   =============
        #region Basic Entity Update
        public virtual void Insert(Kbn客室利用区分 entity)
        {
            AssertEntityNotNull(entity);
            this.DelegateInsert(entity);
        }
 public virtual void LoadDch客室利用台帳List(Kbn客室利用区分 kbn客室利用区分, LoadReferrerOption <Dch客室利用台帳CB, Dch客室利用台帳> loadReferrerOption)
 {
     AssertObjectNotNull("kbn客室利用区分", kbn客室利用区分); AssertObjectNotNull("loadReferrerOption", loadReferrerOption);
     LoadDch客室利用台帳List(xnewLRLs <Kbn客室利用区分>(kbn客室利用区分), loadReferrerOption);
 }
 // ===============================================================================
 //                                                                   Load Referrer
 //                                                                   =============
 #region Load Referrer
 public virtual void LoadDch客室利用台帳List(Kbn客室利用区分 kbn客室利用区分, ConditionBeanSetupper <Dch客室利用台帳CB> conditionBeanSetupper)
 {
     AssertObjectNotNull("kbn客室利用区分", kbn客室利用区分); AssertObjectNotNull("conditionBeanSetupper", conditionBeanSetupper);
     LoadDch客室利用台帳List(xnewLRLs <Kbn客室利用区分>(kbn客室利用区分), conditionBeanSetupper);
 }