public static Shoplistdeleteprods BuildShoplistdeleteprodsFromRow(DataRow row) { Shoplistdeleteprods entity = new Shoplistdeleteprods(); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.pvShoplistRowid = row.Field <byte[]>("pv_shoplist-rowid").ToStringEncoded(); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromShoplistdeleteprods(ref DataRow row, Shoplistdeleteprods entity) { row.SetField("seqno", entity.seqno); row.SetField("pv_shoplist-rowid", entity.pvShoplistRowid.ToByteArray()); }