public static Createprodfromcatresults BuildCreateprodfromcatresultsFromRow(DataRow row) { Createprodfromcatresults entity = new Createprodfromcatresults(); entity.prodcat = row.IsNull("prodcat") ? string.Empty : row.Field <string>("prodcat"); entity.catalogaddflag = row.Field <bool>("catalogaddflag"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromCreateprodfromcatresults(ref DataRow row, Createprodfromcatresults entity) { row.SetField("prodcat", entity.prodcat); row.SetField("catalogaddflag", entity.catalogaddflag); row.SetField("userfield", entity.userfield); }