Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptwizardvalsapbs(ref DataRow row, Reptwizardvalsapbs entity)
 {
     row.SetField("reportnm", entity.reportnm);
     row.SetField("cono", entity.cono);
     row.SetField("queuenm", entity.queuenm);
     row.SetField("groupnm", entity.groupnm);
     row.SetField("startdatetime", entity.startdatetime);
     row.SetField("printernm", entity.printernm);
     row.SetField("statusty", entity.statusty);
     row.SetField("currproc", entity.currproc);
 }
Пример #2
0
        public static Reptwizardvalsapbs BuildReptwizardvalsapbsFromRow(DataRow row)
        {
            Reptwizardvalsapbs entity = new Reptwizardvalsapbs();

            entity.reportnm      = row.IsNull("reportnm") ? string.Empty : row.Field <string>("reportnm");
            entity.cono          = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.queuenm       = row.IsNull("queuenm") ? string.Empty : row.Field <string>("queuenm");
            entity.groupnm       = row.IsNull("groupnm") ? string.Empty : row.Field <string>("groupnm");
            entity.startdatetime = row.IsNull("startdatetime") ? string.Empty : row.Field <string>("startdatetime");
            entity.printernm     = row.IsNull("printernm") ? string.Empty : row.Field <string>("printernm");
            entity.statusty      = row.IsNull("statusty") ? string.Empty : row.Field <string>("statusty");
            entity.currproc      = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc");
            return(entity);
        }