/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromShoplistpopulatecriteria(ref DataRow row, Shoplistpopulatecriteria entity) { row.SetField("proc", entity.proc); row.SetField("clearfl", entity.clearfl); row.SetField("hdrrowid", entity.hdrrowid.ToByteArray()); row.SetField("style", entity.style); row.SetField("selectioncriteria", entity.selectioncriteria); }
public static Shoplistpopulatecriteria BuildShoplistpopulatecriteriaFromRow(DataRow row) { Shoplistpopulatecriteria entity = new Shoplistpopulatecriteria(); entity.proc = row.IsNull("proc") ? string.Empty : row.Field <string>("proc"); entity.clearfl = row.Field <bool>("clearfl"); entity.hdrrowid = row.Field <byte[]>("hdrrowid").ToStringEncoded(); entity.style = row.IsNull("style") ? string.Empty : row.Field <string>("style"); entity.selectioncriteria = row.IsNull("selectioncriteria") ? string.Empty : row.Field <string>("selectioncriteria"); return(entity); }