Code bellow will create eventstore for named connection.
var es = Wireup.Init()
.UsingSqlPersistence("DB")
.Build();
I need something like:
var es = Wireup.Init()
.UsingSqlPersistence("Data Source=TEST;Initial Catalog=App")
.Build();
The most easy way I found is to create custom IConnectionFactory, but this does not look right. Any suggestions?
I did not find a way to do it with any of the built-in classes, but there is the interface you mentioned with is more or less easy to use.
Using joliver's code I implemented a Connection String factory as follows:
To use it simply pass in a factory:
If you wanted you could wrap that in an extension method: