Пример #1
0
        ///<Summary>
        ///Update
        ///This method updates one Identityuserclaim record in the store
        ///</Summary>
        ///<returns>
        ///void
        ///</returns>
        ///<parameters>
        ///BOIdentityuserclaim
        ///</parameters>
        public virtual void Update()
        {
            Doing(this);
            IDAOIdentityuserclaim daoIdentityuserclaim = _iIdentityuserclaimRepository.New();

            RegisterDataObject(_iIdentityuserclaimRepository, _iIdentityuserclaimRepository.BaseData(daoIdentityuserclaim));
            BeginTransaction(_iIdentityuserclaimRepository, "updateBOIdentityuserclaim");
            try
            {
                daoIdentityuserclaim.Id         = _ıd;
                daoIdentityuserclaim.UserId     = _userId;
                daoIdentityuserclaim.ClaimType  = _claimType;
                daoIdentityuserclaim.ClaimValue = _claimValue;
                daoIdentityuserclaim.CtrVersion = _ctrVersion;
                _iIdentityuserclaimRepository.Update(daoIdentityuserclaim);
                CommitTransaction(_iIdentityuserclaimRepository);
                Done(this);

                _ıd         = daoIdentityuserclaim.Id;
                _userId     = daoIdentityuserclaim.UserId;
                _claimType  = daoIdentityuserclaim.ClaimType;
                _claimValue = daoIdentityuserclaim.ClaimValue;
                _ctrVersion = daoIdentityuserclaim.CtrVersion;
                _isDirty    = false;
            }
            catch (Exception ex)
            {
                Failed(this, ex);
                RollbackTransaction(_iIdentityuserclaimRepository, "updateBOIdentityuserclaim");
                Handle(this, ex);
            }
        }
Пример #2
0
 ///<Summary>
 ///Constructor
 ///This constructor initializes the business object from its respective data object
 ///</Summary>
 ///<returns>
 ///void
 ///</returns>
 ///<parameters>
 ///DAOIdentityuserclaim
 ///</parameters>
 protected internal BOIdentityuserclaim(IDAOIdentityuserclaim daoIdentityuserclaim)
 {
     try
     {
         _ıd         = daoIdentityuserclaim.Id;
         _userId     = daoIdentityuserclaim.UserId;
         _claimType  = daoIdentityuserclaim.ClaimType;
         _claimValue = daoIdentityuserclaim.ClaimValue;
         _ctrVersion = daoIdentityuserclaim.CtrVersion;
     }
     catch
     {
         throw;
     }
 }
Пример #3
0
 ///<Summary>
 ///Initializer
 ///Initializer using primary key(s)
 ///</Summary>
 ///<returns>
 ///void
 ///</returns>
 ///<parameters>
 ///string ıd
 ///</parameters>
 public void Init(string ıd)
 {
     try
     {
         IDAOIdentityuserclaim daoIdentityuserclaim = _iIdentityuserclaimRepository.SelectOne(ıd);
         _ıd         = daoIdentityuserclaim.Id;
         _userId     = daoIdentityuserclaim.UserId;
         _claimType  = daoIdentityuserclaim.ClaimType;
         _claimValue = daoIdentityuserclaim.ClaimValue;
         _ctrVersion = daoIdentityuserclaim.CtrVersion;
     }
     catch
     {
         throw;
     }
 }
Пример #4
0
        ///<Summary>
        ///Delete
        ///This method deletes one Identityuserclaim record from the store
        ///</Summary>
        ///<returns>
        ///void
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public virtual void Delete()
        {
            Doing(this);
            IDAOIdentityuserclaim daoIdentityuserclaim = _iIdentityuserclaimRepository.New();

            RegisterDataObject(_iIdentityuserclaimRepository, _iIdentityuserclaimRepository.BaseData(daoIdentityuserclaim));
            BeginTransaction(_iIdentityuserclaimRepository, "deleteBOIdentityuserclaim");
            try
            {
                daoIdentityuserclaim.Id = _ıd;
                _iIdentityuserclaimRepository.Delete(daoIdentityuserclaim);
                CommitTransaction(_iIdentityuserclaimRepository);
                Done(this);
            }
            catch (Exception ex)
            {
                Failed(this, ex);
                RollbackTransaction(_iIdentityuserclaimRepository, "deleteBOIdentityuserclaim");
                Handle(this, ex);
            }
        }
Пример #5
0
 public virtual void Delete(IDAOIdentityuserclaim daoIdentityuserclaim)
 {
     daoIdentityuserclaim.Delete();
 }
Пример #6
0
 public virtual void Update(IDAOIdentityuserclaim daoIdentityuserclaim)
 {
     daoIdentityuserclaim.Update();
 }
Пример #7
0
 public virtual void Insert(IDAOIdentityuserclaim daoIdentityuserclaim)
 {
     daoIdentityuserclaim.Insert();
 }
Пример #8
0
 public virtual IzNorthwindConn_BaseData BaseData(IDAOIdentityuserclaim daoIdentityuserclaim)
 {
     return((IzNorthwindConn_BaseData)(DAOIdentityuserclaim)daoIdentityuserclaim);
 }