예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromRsqueuelookupresults(ref DataRow row, Rsqueuelookupresults entity)
 {
     row.SetField("queuenm", entity.queuenm);
     row.SetField("descrip", entity.descrip);
     row.SetField("statustype", entity.statustype);
     row.SetField("queuepri", entity.queuepri);
     row.SetField("begintm", entity.begintm);
     row.SetField("endtm", entity.endtm);
     row.SetField("rowid-rssq", entity.rowidRssq.ToByteArray());
 }
예제 #2
0
        public static Rsqueuelookupresults BuildRsqueuelookupresultsFromRow(DataRow row)
        {
            Rsqueuelookupresults entity = new Rsqueuelookupresults();

            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.queuepri   = row.IsNull("queuepri") ? 0 : row.Field <int>("queuepri");
            entity.begintm    = row.IsNull("begintm") ? string.Empty : row.Field <string>("begintm");
            entity.endtm      = row.IsNull("endtm") ? string.Empty : row.Field <string>("endtm");
            entity.rowidRssq  = row.Field <byte[]>("rowid-rssq").ToStringEncoded();
            return(entity);
        }