Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtimportfile(ref DataRow row, Wtimportfile entity)
 {
     row.SetField("cWorkSheet", entity.cWorkSheet);
     row.SetField("iRow", entity.iRow);
     row.SetField("cColValues", entity.cColValues);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Wtimportfile BuildWtimportfileFromRow(DataRow row)
        {
            Wtimportfile entity = new Wtimportfile();

            entity.cWorkSheet = row.IsNull("cWorkSheet") ? string.Empty : row.Field <string>("cWorkSheet");
            entity.iRow       = row.IsNull("iRow") ? 0 : row.Field <int>("iRow");
            entity.cColValues = row.IsNull("cColValues") ? string.Empty : row.Field <string>("cColValues");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }