コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeimportfile(ref DataRow row, Oeimportfile entity)
 {
     row.SetField("iRow", entity.iRow);
     row.SetField("cWorkSheet", entity.cWorkSheet);
     row.SetField("cColValues", entity.cColValues);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Oeimportfile BuildOeimportfileFromRow(DataRow row)
        {
            Oeimportfile entity = new Oeimportfile();

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