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); }
public abstract void MapProperties(DBPropertyMap map);