Exemple #1
0
        public static Icamudropdownscriteria BuildIcamudropdownscriteriaFromRow(DataRow row)
        {
            Icamudropdownscriteria entity = new Icamudropdownscriteria();

            entity.reportno     = row.IsNull("reportno") ? 0 : row.Field <int>("reportno");
            entity.dropdowntype = row.IsNull("dropdowntype") ? string.Empty : row.Field <string>("dropdowntype");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcamudropdownscriteria(ref DataRow row, Icamudropdownscriteria entity)
 {
     row.SetField("reportno", entity.reportno);
     row.SetField("dropdowntype", entity.dropdowntype);
     row.SetField("userfield", entity.userfield);
 }