Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaetdetailbannerlogoff(ref DataRow row, Vaetdetailbannerlogoff entity)
 {
     row.SetField("forcevarollfl", entity.forcevarollfl);
     row.SetField("forceheaderfl", entity.forceheaderfl);
     row.SetField("ourproc", entity.ourproc);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Vaetdetailbannerlogoff BuildVaetdetailbannerlogoffFromRow(DataRow row)
        {
            Vaetdetailbannerlogoff entity = new Vaetdetailbannerlogoff();

            entity.forcevarollfl = row.Field <bool>("forcevarollfl");
            entity.forceheaderfl = row.Field <bool>("forceheaderfl");
            entity.ourproc       = row.IsNull("ourproc") ? string.Empty : row.Field <string>("ourproc");
            entity.orderno       = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf      = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.lineno        = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }