/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcsecoppositeenable(ref DataRow row, Icsecoppositeenable entity) { row.SetField("prod", entity.prod); row.SetField("enablesubstitute", entity.enablesubstitute); row.SetField("substitutelabel", entity.substitutelabel); row.SetField("enablesupersede", entity.enablesupersede); row.SetField("enablebarcode", entity.enablebarcode); row.SetField("enableinterchange", entity.enableinterchange); row.SetField("enablecustomerproduct", entity.enablecustomerproduct); row.SetField("enableoption", entity.enableoption); row.SetField("enableupgrade", entity.enableupgrade); row.SetField("enableicsldefault", entity.enableicsldefault); row.SetField("userfield", entity.userfield); }
public static Icsecoppositeenable BuildIcsecoppositeenableFromRow(DataRow row) { Icsecoppositeenable entity = new Icsecoppositeenable(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.enablesubstitute = row.Field <bool>("enablesubstitute"); entity.substitutelabel = row.IsNull("substitutelabel") ? string.Empty : row.Field <string>("substitutelabel"); entity.enablesupersede = row.Field <bool>("enablesupersede"); entity.enablebarcode = row.Field <bool>("enablebarcode"); entity.enableinterchange = row.Field <bool>("enableinterchange"); entity.enablecustomerproduct = row.Field <bool>("enablecustomerproduct"); entity.enableoption = row.Field <bool>("enableoption"); entity.enableupgrade = row.Field <bool>("enableupgrade"); entity.enableicsldefault = row.Field <bool>("enableicsldefault"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }