Example #1
0
        ///<summary>
        ///Get object by Id.
        ///</summary>
        public static DO_SaleShop_profits_qyjl_log.UO_SaleShop_profits_qyjl_log GetObjectById(System.Int32 id)
        {
            DO_SaleShop_profits_qyjl_log da = new DO_SaleShop_profits_qyjl_log();

            DO_SaleShop_profits_qyjl_log.UOList_SaleShop_profits_qyjl_log l = da.GetList(GetConditionsById(id));
            return(l.Count > 0 ? l[0] : null);
        }
Example #2
0
        ///<summary>
        ///Get object by primary key string.
        ///</summary>
        public static DO_SaleShop_profits_qyjl_log.UO_SaleShop_profits_qyjl_log GetObjectByPrimaryKeyString(string primaryKeyString)
        {
            DO_SaleShop_profits_qyjl_log da = new DO_SaleShop_profits_qyjl_log();

            DO_SaleShop_profits_qyjl_log.UOList_SaleShop_profits_qyjl_log l = da.GetList(GetConditionsByPrimaryKeyString(primaryKeyString));
            return(l.Count > 0 ? l[0] : null);
        }
Example #3
0
        ///<summary>
        ///Delete object by primary key string(with transation).
        ///</summary>
        public static int DeleteByPrimaryKeyString(string primaryKeyString, IDbConnection connection, IDbTransaction transaction)
        {
            DO_SaleShop_profits_qyjl_log da = new DO_SaleShop_profits_qyjl_log();

            return(da.Delete(connection, transaction, GetConditionsByPrimaryKeyString(primaryKeyString)));
        }
Example #4
0
        ///<summary>
        ///Delete object by primary key string.
        ///</summary>
        public static int DeleteByPrimaryKeyString(string primaryKeyString)
        {
            DO_SaleShop_profits_qyjl_log da = new DO_SaleShop_profits_qyjl_log();

            return(da.Delete(GetConditionsByPrimaryKeyString(primaryKeyString)));
        }
Example #5
0
        ///<summary>
        ///Delete object by primary key(with transation).
        ///</summary>
        public static int Delete(System.Int32 id, IDbConnection connection, IDbTransaction transaction)
        {
            DO_SaleShop_profits_qyjl_log da = new DO_SaleShop_profits_qyjl_log();

            return(da.Delete(connection, transaction, GetConditionsByPrimaryKey(id)));
        }
Example #6
0
        ///<summary>
        ///Delete object by primary key.
        ///</summary>
        public static int Delete(System.Int32 id)
        {
            DO_SaleShop_profits_qyjl_log da = new DO_SaleShop_profits_qyjl_log();

            return(da.Delete(GetConditionsByPrimaryKey(id)));
        }
Example #7
0
        ///<summary>
        ///Get records count.
        ///</summary>
        public static int GetRecordsCount(DO_SaleShop_profits_qyjl_log.UO_SaleShop_profits_qyjl_log parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary <DO_SaleShop_profits_qyjl_log.Columns, TokenTypes> extTokens)
        {
            DO_SaleShop_profits_qyjl_log da = new DO_SaleShop_profits_qyjl_log();

            return(da.GetRecordsCount(GetConditionsByObject(parameterObj, isAnd, tokenTypes, extTokens)));
        }
Example #8
0
        ///<summary>
        ///Get all records count.
        ///</summary>
        public static int GetAllRecordsCount()
        {
            DO_SaleShop_profits_qyjl_log da = new DO_SaleShop_profits_qyjl_log();

            return(da.GetRecordsCount());
        }
Example #9
0
        ///<summary>
        ///Get all records.
        ///</summary>
        public static DO_SaleShop_profits_qyjl_log.UOList_SaleShop_profits_qyjl_log GetAllList()
        {
            DO_SaleShop_profits_qyjl_log da = new DO_SaleShop_profits_qyjl_log();

            return(da.GetAllList());
        }