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