Beispiel #1
0
        public static Shoplistpreparecriteria BuildShoplistpreparecriteriaFromRow(DataRow row)
        {
            Shoplistpreparecriteria entity = new Shoplistpreparecriteria();

            entity.proc     = row.IsNull("proc") ? string.Empty : row.Field <string>("proc");
            entity.clearfl  = row.Field <bool>("clearfl");
            entity.hdrrowid = row.Field <byte[]>("hdrrowid").ToStringEncoded();
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromShoplistpreparecriteria(ref DataRow row, Shoplistpreparecriteria entity)
 {
     row.SetField("proc", entity.proc);
     row.SetField("clearfl", entity.clearfl);
     row.SetField("hdrrowid", entity.hdrrowid.ToByteArray());
 }