コード例 #1
0
        public static Pdemimportnewfiledata BuildPdemimportnewfiledataFromRow(DataRow row)
        {
            Pdemimportnewfiledata entity = new Pdemimportnewfiledata();

            entity.cColValues = row.IsNull("cColValues") ? string.Empty : row.Field <string>("cColValues");
            entity.rowNumber  = row.IsNull("RowNumber") ? 0 : row.Field <int>("RowNumber");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdemimportnewfiledata(ref DataRow row, Pdemimportnewfiledata entity)
 {
     row.SetField("cColValues", entity.cColValues);
     row.SetField("RowNumber", entity.rowNumber);
     row.SetField("userfield", entity.userfield);
 }