コード例 #1
0
        private static async Task <int> FromDBByIdAsync <T>(AdHistoryDataContainer item, DBKey id, int offset = 0, int limit = 20)
            where T : DBQuery_AdHistory_Select_Base <COMMON_IN_DATA_DBKeyOffsetLimit>, new()
        {
            var query = new T();

            query.IN.DBKey  = id;
            query.IN.Offset = offset;
            query.IN.Limit  = limit;

            bool result = await DBThread.Instance.ReqQueryAsync(query);

            query.OUT.Items.CopyTo(ref item);
            return(item.Count);
        }
コード例 #2
0
 public static async Task <int> FromDBByAdDesignIdAsync(this AdHistoryDataContainer item, DBKey adDesignId, int offset = 0, int limit = 20)
 {
     return(await FromDBByIdAsync <DBQuery_AdHistory_Select_By_AdDesignId>(item, adDesignId, offset, limit));
 }