protected virtual IIndexer SpreadOptions() { ConnectionModel = ConnectionRepository.GetById(GetIndexModel().SourceConnectionId.ToString()); var connectionOptions = ConnectionRepository.LoadOptions(ConnectionModel.Id.ToString()); var connectionOptionItems = connectionOptions.Select(c => new OptionItem { Name = c.Key, Value = c.Value }); Adapter.SetOptions(connectionOptionItems); Provider.SetOptions(connectionOptionItems); return(this); }
protected virtual IMapper SpreadOptions() { ConnectionModel = ConnectionRepository.GetById(EntityModel.DestinationConnectionId.ToString()); var connectionOptions = ConnectionRepository.LoadOptions(ConnectionModel.Id.ToString()); var connectionOptionItems = connectionOptions.Select(c => new OptionItem { Name = c.Key, Value = c.Value }); Adapter.SetOptions(connectionOptionItems); Provider.SetOptions(connectionOptionItems); return(this); }
virtual IPusher SpreadOptions() { var indexModel = GetIndexModel(); ConnectionModel = ConnectionRepository.GetById(indexModel.DestinationConnectionId.ToString()); var connectionOptions = ConnectionRepository.LoadOptions(ConnectionModel.Id.ToString()); var connectionOptionItems = connectionOptions.Select(c => new OptionItem { Name = c.Key, Value = c.Value }); Adapter.SetOptions(connectionOptionItems); Provider.SetOptions(connectionOptionItems); return(this); }
public virtual IOptionManager SetOptions(IEnumerable <OptionItem> options) { return(Provider.SetOptions(options)); }