コード例 #1
0
        public static DbResult <U> From <T, U>(DbResult <T> dbr, U data = default)
        {
            var result = new DbResult <U>
            {
                Success     = dbr.Success,
                Exception   = dbr.Exception,
                Count       = dbr.Count,
                Info        = dbr.Info,
                MessageType = dbr.MessageType,
                Data        = data
            };

            return(result);
        }