Beispiel #1
0
        public static bool FromDBTable(this AdUnitData item, DataRow row)
        {
            if (row == null)
            {
                return(false);
            }

            row.Copy(item);
            return(true);
        }
Beispiel #2
0
        public static async Task <bool> FromDBAsync(this AdUnitData item, DBKey AppId)
        {
            var query = new DBQuery_AdUnit_Select();

            query.IN.DBKey = AppId;

            await DBThread.Instance.ReqQueryAsync(query);

            if (query.OUT.FirstItem == null)
            {
                return(false);
            }

            query.OUT.FirstItem.Copy(item);
            return(true);
        }