public static Poblanketlinessingle BuildPoblanketlinessingleFromRow(DataRow row) { Poblanketlinessingle entity = new Poblanketlinessingle(); entity.transtype = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype"); entity.qtyremainlabel = row.IsNull("qtyremainlabel") ? string.Empty : row.Field <string>("qtyremainlabel"); entity.qtyordlabel = row.IsNull("qtyordlabel") ? string.Empty : row.Field <string>("qtyordlabel"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPoblanketlinessingle(ref DataRow row, Poblanketlinessingle entity) { row.SetField("transtype", entity.transtype); row.SetField("qtyremainlabel", entity.qtyremainlabel); row.SetField("qtyordlabel", entity.qtyordlabel); }