Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeetprintlaunchcriteria(ref DataRow row, Oeetprintlaunchcriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("promomsg", entity.promomsg);
     row.SetField("whereappfl", entity.whereappfl);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Oeetprintlaunchcriteria BuildOeetprintlaunchcriteriaFromRow(DataRow row)
        {
            Oeetprintlaunchcriteria entity = new Oeetprintlaunchcriteria();

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