Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcamrdropdownscriteria(ref DataRow row, Icamrdropdownscriteria entity)
 {
     row.SetField("reportno", entity.reportno);
     row.SetField("dropdowntype", entity.dropdowntype);
     row.SetField("customparam", entity.customparam);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Icamrdropdownscriteria BuildIcamrdropdownscriteriaFromRow(DataRow row)
        {
            Icamrdropdownscriteria entity = new Icamrdropdownscriteria();

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