public static Oeblanketlinessingle BuildOeblanketlinessingleFromRow(DataRow row) { Oeblanketlinessingle entity = new Oeblanketlinessingle(); 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 UpdateRowFromOeblanketlinessingle(ref DataRow row, Oeblanketlinessingle entity) { row.SetField("transtype", entity.transtype); row.SetField("qtyremainlabel", entity.qtyremainlabel); row.SetField("qtyordlabel", entity.qtyordlabel); }