/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcproductlookupcriteria(ref DataRow row, Icproductlookupcriteria entity) { row.SetField("prod", entity.prod); row.SetField("lookupnm", entity.lookupnm); row.SetField("prodcat", entity.prodcat); row.SetField("includeinactive", entity.includeinactive); row.SetField("kittype", entity.kittype); row.SetField("keywords", entity.keywords); row.SetField("maskcharacter", entity.maskcharacter); row.SetField("recordcountlimit", entity.recordcountlimit); row.SetField("prodtiergrp", entity.prodtiergrp); row.SetField("userfield", entity.userfield); }
public static Icproductlookupcriteria BuildIcproductlookupcriteriaFromRow(DataRow row) { Icproductlookupcriteria entity = new Icproductlookupcriteria(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.lookupnm = row.IsNull("lookupnm") ? string.Empty : row.Field <string>("lookupnm"); entity.prodcat = row.IsNull("prodcat") ? string.Empty : row.Field <string>("prodcat"); entity.includeinactive = row.Field <bool>("includeinactive"); entity.kittype = row.IsNull("kittype") ? string.Empty : row.Field <string>("kittype"); entity.keywords = row.IsNull("keywords") ? string.Empty : row.Field <string>("keywords"); entity.maskcharacter = row.IsNull("maskcharacter") ? string.Empty : row.Field <string>("maskcharacter"); entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit"); entity.prodtiergrp = row.IsNull("prodtiergrp") ? string.Empty : row.Field <string>("prodtiergrp"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }