Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdemimportnewexcelerrors(ref DataRow row, Pdemimportnewexcelerrors entity)
 {
     row.SetField("iRow", entity.iRow);
     row.SetField("iCol", entity.iCol);
     row.SetField("cErrorMsg", entity.cErrorMsg);
     row.SetField("cColor", entity.cColor);
     row.SetField("cType", entity.cType);
     row.SetField("cColValues", entity.cColValues);
     row.SetField("cColLabels", entity.cColLabels);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Pdemimportnewexcelerrors BuildPdemimportnewexcelerrorsFromRow(DataRow row)
        {
            Pdemimportnewexcelerrors entity = new Pdemimportnewexcelerrors();

            entity.iRow       = row.IsNull("iRow") ? 0 : row.Field <int>("iRow");
            entity.iCol       = row.IsNull("iCol") ? 0 : row.Field <int>("iCol");
            entity.cErrorMsg  = row.IsNull("cErrorMsg") ? string.Empty : row.Field <string>("cErrorMsg");
            entity.cColor     = row.IsNull("cColor") ? string.Empty : row.Field <string>("cColor");
            entity.cType      = row.IsNull("cType") ? string.Empty : row.Field <string>("cType");
            entity.cColValues = row.IsNull("cColValues") ? string.Empty : row.Field <string>("cColValues");
            entity.cColLabels = row.IsNull("cColLabels") ? string.Empty : row.Field <string>("cColLabels");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }