Ejemplo n.º 1
0
        public object GetByPrimaryKey(ENT.Recharge Entity)
        {
            object objResult = null;

            try
            {
                DAL.CRUDOperation tt = new DAL.CRUDOperation();
                objResult = tt.GetEntityByPrimartKey(Entity);
            }
            catch (Exception)
            {
                throw;
            }
            return(objResult);
        }
Ejemplo n.º 2
0
        public object GetByPrimaryKey(ENT.DMT_BeneficiaryRegister Entity)
        {
            object objResult = null;

            try
            {
                DAL.CRUDOperation tt = new DAL.CRUDOperation();
                objResult = tt.GetEntityByPrimartKey(Entity);
            }
            catch (Exception)
            {
                throw;
            }
            return(objResult);
        }
Ejemplo n.º 3
0
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    // TODO: dispose managed state (managed objects).
                }
                objDAL    = null;
                clsDAL    = null;
                Entity    = null;
                lstEntity = null;
                // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
                // TODO: set large fields to null.

                disposedValue = true;
            }
        }
Ejemplo n.º 4
0
        public int BulkInsert(List <ENT.DMT_BeneficiaryRegister> Entity)
        {
            int objResult = 0;

            try
            {
                DAL.CRUDOperation tt = new DAL.CRUDOperation();

                String query = string.Empty;

                foreach (ENT.DMT_BeneficiaryRegister p in Entity)
                {
                    query = query + COM.CommonMSSQL.PrepairInsertQueryByEntity(p, p.TableName);
                }

                objResult = tt.ExecuteQuery(query);
            }
            catch (Exception ex)
            {
                throw;
            }
            return(objResult);
        }