예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeetprintscreensingle(ref DataRow row, Oeetprintscreensingle entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("oeprintid", entity.oeprintid.ToByteArray());
     row.SetField("whereappchecked", entity.whereappchecked);
     row.SetField("printersenabled", entity.printersenabled);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Oeetprintscreensingle BuildOeetprintscreensingleFromRow(DataRow row)
        {
            Oeetprintscreensingle entity = new Oeetprintscreensingle();

            entity.orderno         = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf        = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.oeprintid       = row.Field <byte[]>("oeprintid").ToStringEncoded();
            entity.whereappchecked = row.Field <bool>("whereappchecked");
            entity.printersenabled = row.Field <bool>("printersenabled");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }