Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeetassemblyconfigsingle(ref DataRow row, Oeetassemblyconfigsingle entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("vawhse", entity.vawhse);
     row.SetField("proddesc", entity.proddesc);
     row.SetField("btnokenabled", entity.btnokenabled);
     row.SetField("numsegments", entity.numsegments);
     row.SetField("verno", entity.verno);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Oeetassemblyconfigsingle BuildOeetassemblyconfigsingleFromRow(DataRow row)
        {
            Oeetassemblyconfigsingle entity = new Oeetassemblyconfigsingle();

            entity.prod         = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.vawhse       = row.IsNull("vawhse") ? string.Empty : row.Field <string>("vawhse");
            entity.proddesc     = row.IsNull("proddesc") ? string.Empty : row.Field <string>("proddesc");
            entity.btnokenabled = row.Field <bool>("btnokenabled");
            entity.numsegments  = row.IsNull("numsegments") ? 0 : row.Field <int>("numsegments");
            entity.verno        = row.IsNull("verno") ? 0 : row.Field <int>("verno");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }