示例#1
0
文件: NEntity.cs 项目: QYFS2018/VC2
        public override ReturnValue getEntityList(string sql, Transaction trans)
        {
            NGateway    _gateway = new NGateway(this, trans);
            ReturnValue result   = _gateway.getEntityList(sql);

            return(result);
        }
示例#2
0
文件: NEntity.cs 项目: QYFS2018/VC2
        public override ReturnValue getEntity(string sql)
        {
            NGateway    _gateway = new NGateway(this);
            ReturnValue result   = _gateway.getEntity(sql);

            //SaveLog(result, _gateway.TableName, "getEntity");

            return(result);
        }
示例#3
0
文件: NEntity.cs 项目: QYFS2018/VC2
        protected virtual ReturnValue Save(string sql)
        {
            ReturnValue _result = new ReturnValue();

            NGateway _gateway = new NGateway(this);

            _result = _gateway.Save(sql);


            return(_result);
        }
示例#4
0
文件: NEntity.cs 项目: QYFS2018/VC2
        public override ReturnValue ExecSql(string sql)
        {
            ReturnValue _result = new ReturnValue();

            NGateway _gateway = new NGateway(this);

            _result = _gateway.ExecSql(sql);



            return(_result);
        }
示例#5
0
文件: NEntity.cs 项目: QYFS2018/VC2
        public override ReturnValue ExecSql(string sql, Transaction trans)
        {
            ReturnValue _result = new ReturnValue();


            NGateway _gateway = new NGateway(this, trans);

            _result = _gateway.ExecSql(sql);

            if (_result.Success == false)
            {
                if (trans != null)
                {
                    trans.RollbackTransaction();
                }
                return(_result);
            }



            return(_result);
        }
示例#6
0
文件: NEntity.cs 项目: QYFS2018/VC2
        protected virtual ReturnValue Save(string sql, Transaction trans)
        {
            ReturnValue _result = new ReturnValue();


            NGateway _gateway = new NGateway(this, trans);

            _result = _gateway.Save(sql);

            if (_result.Success == false)
            {
                if (trans != null)
                {
                    trans.RollbackTransaction();
                }
                return(_result);
            }



            return(_result);
        }