예제 #1
0
 public SqlDenormalizer()
 {
     connectionStringRetriever = ServiceLocator.Current.Resolve<IConnectionStringRetriever>();
     updateValuesBuilder = new UpdatableValuesBuilder(connectionStringRetriever);
     var tableNameCalculator = new TableNameCalculator();
     tableName = tableNameCalculator.GetTheTableName(GetType());
 }
예제 #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MongoTarget" /> class.
 /// </summary>
 public MongoTarget([NotNull] IConnectionStringRetriever connectionStringRetriever,
                    [NotNull] IEventsWriter eventsWriter,
                    [NotNull] IInternalLogger internalLogger)
 {
     if (connectionStringRetriever == null)
     {
         throw new ArgumentNullException(nameof(connectionStringRetriever));
     }
     if (eventsWriter == null)
     {
         throw new ArgumentNullException(nameof(eventsWriter));
     }
     if (internalLogger == null)
     {
         throw new ArgumentNullException(nameof(internalLogger));
     }
     Fields                     = new List <MongoField>();
     Properties                 = new List <MongoField>();
     IncludeDefaults            = true;
     _connectionStringRetriever = connectionStringRetriever;
     _eventsWriter              = eventsWriter;
     _internalLogger            = internalLogger;
 }
 public CreateSectionNodeProviderTableBlade(IConnectionStringRetriever connectionStringRetriever)
 {
     this.connectionStringRetriever = connectionStringRetriever;
 }
 public CreateTreeNodeTableBlade(IConnectionStringRetriever connectionStringRetriever)
 {
     this.connectionStringRetriever = connectionStringRetriever;
 }
 public CreateContentNodeProviderTablesBlade(IConnectionStringRetriever connectionStringRetriever)
 {
     this.connectionStringRetriever = connectionStringRetriever;
 }
예제 #6
0
 public UpdatableValuesBuilder(IConnectionStringRetriever connectionStringRetriever)
 {
     this.connectionStringRetriever = connectionStringRetriever;
 }
예제 #7
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MongoTarget" /> class.
 /// </summary>
 public TestTarget([NotNull] IConnectionStringRetriever connectionStringRetriever,
                   [NotNull] IEventsWriter eventsWriter,
                   [NotNull] IInternalLogger internalLogger) : base(connectionStringRetriever, eventsWriter, internalLogger)
 {
 }
예제 #8
0
 public DatabaseRetriever(IConnectionStringRetriever connectionStringRetriever)
 {
     this.connectionStringRetriever = connectionStringRetriever;
 }