public SqlPersistenceFactory( string connectionName, ISerialize serializer, ISqlDialect dialect = null, TransactionScopeOption?scopeOption = null) : this(serializer, scopeOption, null, DefaultPageSize) { ConnectionFactory = new ConfigurationConnectionFactory(connectionName); Dialect = dialect ?? ResolveDialect(new ConfigurationConnectionFactory(connectionName).Settings); }
public static IStoreEvents CreateSqlConnection() { var config = new ConfigurationConnectionFactory( "NEventStorePoc", "system.data.sqlclient", ConnectionString); return Wireup.Init() .UsingSqlPersistence(config) .WithDialect(new MsSqlDialect()) .InitializeStorageEngine() .Build(); }
public static SqlPersistenceWireup UsingSqlPersistence(this Wireup wireup, string connectionName) { var factory = new ConfigurationConnectionFactory(connectionName); return wireup.UsingSqlPersistence(factory); }