예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptwizardenablesapbs(ref DataRow row, Reptwizardenablesapbs entity)
 {
     row.SetField("reportnm", entity.reportnm);
     row.SetField("cono", entity.cono);
     row.SetField("enablecono", entity.enablecono);
     row.SetField("descrip", entity.descrip);
 }
예제 #2
0
        public static Reptwizardenablesapbs BuildReptwizardenablesapbsFromRow(DataRow row)
        {
            Reptwizardenablesapbs entity = new Reptwizardenablesapbs();

            entity.reportnm   = row.IsNull("reportnm") ? string.Empty : row.Field <string>("reportnm");
            entity.cono       = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.enablecono = row.Field <bool>("enablecono");
            entity.descrip    = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            return(entity);
        }