Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcamrupdusageratecriteria(ref DataRow row, Icamrupdusageratecriteria entity)
 {
     row.SetField("reportno", entity.reportno);
     row.SetField("updatecontrolsfl", entity.updatecontrolsfl);
     row.SetField("customparam", entity.customparam);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Icamrupdusageratecriteria BuildIcamrupdusageratecriteriaFromRow(DataRow row)
        {
            Icamrupdusageratecriteria entity = new Icamrupdusageratecriteria();

            entity.reportno         = row.IsNull("reportno") ? 0 : row.Field <int>("reportno");
            entity.updatecontrolsfl = row.Field <bool>("updatecontrolsfl");
            entity.customparam      = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }