public void Add(DataSourceEntry entry, int?order) { if (order.HasValue) { this.OrderDataSource[entry.GetUniqueName()] = order.Value; } }
public int GetOrder(DataSourceEntry dataSource) { // To ensure that that TableDefinitions are put at the end in DataSources.json when the order information is not available. var defaultValue = dataSource.TableDefinition != null ? int.MaxValue : -1; return(this.OrderDataSource.GetOrDefault <string, int>(dataSource.GetUniqueName(), defaultValue)); }
public int GetOrder(DataSourceEntry dataSource) { return(this.OrderDataSource.GetOrDefault <string, int>(dataSource.GetUniqueName(), -1)); }