예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromApvendoredidropdowns(ref DataRow row, Apvendoredidropdowns entity)
 {
     row.SetField("netrebatebasedfrom", entity.netrebatebasedfrom);
     row.SetField("netrebatedownto", entity.netrebatedownto);
     row.SetField("pctrebatebasedon", entity.pctrebatebasedon);
     row.SetField("multitenantfl", entity.multitenantfl);
 }
예제 #2
0
        public static Apvendoredidropdowns BuildApvendoredidropdownsFromRow(DataRow row)
        {
            Apvendoredidropdowns entity = new Apvendoredidropdowns();

            entity.netrebatebasedfrom = row.IsNull("netrebatebasedfrom") ? string.Empty : row.Field <string>("netrebatebasedfrom");
            entity.netrebatedownto    = row.IsNull("netrebatedownto") ? string.Empty : row.Field <string>("netrebatedownto");
            entity.pctrebatebasedon   = row.IsNull("pctrebatebasedon") ? string.Empty : row.Field <string>("pctrebatebasedon");
            entity.multitenantfl      = row.Field <bool>("multitenantfl");
            return(entity);
        }