CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ New< TTable >() [1/2]

static SqlEventStoreDataContext Cqrs.Events.SqlEventStoreDataContext.New< TTable > ( string  tableName,
string  fileOrServerOrConnection 
)
static

Instantiates a new instance of the SqlEventStoreDataContext class by referencing a file source.

Parameters
tableNameThe name of the table.
fileOrServerOrConnectionThis argument can be any one of the following: The name of a file where a SQL Server Express database resides. The name of a server where a database is present. In this case the provider uses the default database for a user. A complete connection string. LINQ to SQL just passes the string to the provider without modification.