示例#1
0
        public static T ToDTO <T>(this DataRow row) where T : DBMappable, new()
        {
            var propertyMap = new DBPropertyMap(row);
            var model       = new T();

            model.MapProperties(propertyMap);
            return(model);
        }
示例#2
0
 public abstract void MapProperties(DBPropertyMap map);