示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromRssqqueue(ref DataRow row, Rssqqueue entity)
 {
     row.SetField("queuenm", entity.queuenm);
     row.SetField("descrip", entity.descrip);
     row.SetField("statustype", entity.statustype);
     row.SetField("begintm", entity.begintm);
     row.SetField("endtm", entity.endtm);
     row.SetField("logdir", entity.logdir);
     row.SetField("nomaxjobs", entity.nomaxjobs);
     row.SetField("queuepri", entity.queuepri);
     row.SetField("rngoptfl", entity.rngoptfl);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("beginhour", entity.beginhour);
     row.SetField("beginminute", entity.beginminute);
     row.SetField("beginampm", entity.beginampm);
     row.SetField("begintmdisp", entity.begintmdisp);
     row.SetField("endhour", entity.endhour);
     row.SetField("endminute", entity.endminute);
     row.SetField("endampm", entity.endampm);
     row.SetField("endtmdisp", entity.endtmdisp);
     row.SetField("multitenantfl", entity.multitenantfl);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Rssqqueue BuildRssqqueueFromRow(DataRow row)
        {
            Rssqqueue entity = new Rssqqueue();

            entity.queuenm       = row.IsNull("queuenm") ? string.Empty : row.Field <string>("queuenm");
            entity.descrip       = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.statustype    = row.Field <bool>("statustype");
            entity.begintm       = row.IsNull("begintm") ? 0 : row.Field <int>("begintm");
            entity.endtm         = row.IsNull("endtm") ? 0 : row.Field <int>("endtm");
            entity.logdir        = row.IsNull("logdir") ? string.Empty : row.Field <string>("logdir");
            entity.nomaxjobs     = row.IsNull("nomaxjobs") ? 0 : row.Field <int>("nomaxjobs");
            entity.queuepri      = row.IsNull("queuepri") ? 0 : row.Field <int>("queuepri");
            entity.rngoptfl      = row.Field <bool>("rngoptfl");
            entity.operinit      = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit");
            entity.transdt       = row.Field <DateTime?>("transdt");
            entity.transtm       = row.IsNull("transtm") ? string.Empty : row.Field <string>("transtm");
            entity.beginhour     = row.IsNull("beginhour") ? 0 : row.Field <int>("beginhour");
            entity.beginminute   = row.IsNull("beginminute") ? 0 : row.Field <int>("beginminute");
            entity.beginampm     = row.IsNull("beginampm") ? string.Empty : row.Field <string>("beginampm");
            entity.begintmdisp   = row.IsNull("begintmdisp") ? string.Empty : row.Field <string>("begintmdisp");
            entity.endhour       = row.IsNull("endhour") ? 0 : row.Field <int>("endhour");
            entity.endminute     = row.IsNull("endminute") ? 0 : row.Field <int>("endminute");
            entity.endampm       = row.IsNull("endampm") ? string.Empty : row.Field <string>("endampm");
            entity.endtmdisp     = row.IsNull("endtmdisp") ? string.Empty : row.Field <string>("endtmdisp");
            entity.multitenantfl = row.Field <bool>("multitenantfl");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }