Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromRssqcriteria(ref DataRow row, Rssqcriteria entity)
 {
     row.SetField("queuenm", entity.queuenm);
     row.SetField("statuscd", entity.statuscd);
     row.SetField("queuepri", entity.queuepri);
     row.SetField("inquiryfl", entity.inquiryfl);
     row.SetField("updatefl", entity.updatefl);
     row.SetField("timezoneclient", entity.timezoneclient);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Rssqcriteria BuildRssqcriteriaFromRow(DataRow row)
        {
            Rssqcriteria entity = new Rssqcriteria();

            entity.queuenm        = row.IsNull("queuenm") ? string.Empty : row.Field <string>("queuenm");
            entity.statuscd       = row.IsNull("statuscd") ? string.Empty : row.Field <string>("statuscd");
            entity.queuepri       = row.IsNull("queuepri") ? 0 : row.Field <int>("queuepri");
            entity.inquiryfl      = row.Field <bool>("inquiryfl");
            entity.updatefl       = row.Field <bool>("updatefl");
            entity.timezoneclient = row.IsNull("timezoneclient") ? 0 : row.Field <int>("timezoneclient");
            entity.userfield      = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }