Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIonioboxsummary(ref DataRow row, Ionioboxsummary entity)
 {
     row.SetField("lastcreatedatetime", entity.lastcreatedatetime);
     row.SetField("unprocessedcnt", entity.unprocessedcnt);
     row.SetField("totalcnt", entity.totalcnt);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Ionioboxsummary BuildIonioboxsummaryFromRow(DataRow row)
        {
            Ionioboxsummary entity = new Ionioboxsummary();

            entity.lastcreatedatetime = row.Field <DateTime?>("lastcreatedatetime");
            entity.unprocessedcnt     = row.IsNull("unprocessedcnt") ? 0 : row.Field <int>("unprocessedcnt");
            entity.totalcnt           = row.IsNull("totalcnt") ? 0 : row.Field <int>("totalcnt");
            entity.userfield          = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }