Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcamudropdownsresults(ref DataRow row, Icamudropdownsresults entity)
 {
     row.SetField("dropdowntype", entity.dropdowntype);
     row.SetField("codeval", entity.codeval);
     row.SetField("codedesc", entity.codedesc);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Icamudropdownsresults BuildIcamudropdownsresultsFromRow(DataRow row)
        {
            Icamudropdownsresults entity = new Icamudropdownsresults();

            entity.dropdowntype = row.IsNull("dropdowntype") ? string.Empty : row.Field <string>("dropdowntype");
            entity.codeval      = row.IsNull("codeval") ? string.Empty : row.Field <string>("codeval");
            entity.codedesc     = row.IsNull("codedesc") ? string.Empty : row.Field <string>("codedesc");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }