protected DataSessionBase(TProvider provider, DbConnection connection) { Argument.Assert.IsNotNull(provider, nameof(provider)); Argument.Assert.IsNotNull(connection, nameof(connection)); State = new PersistentSessionConnectionState <TProvider>(provider, connection); }
protected DataSessionBase(TProvider provider, string connectionString) { Argument.Assert.IsNotNull(provider, nameof(provider)); Argument.Assert.IsNotNullOrEmpty(connectionString, nameof(connectionString)); State = new PersistentSessionConnectionState <TProvider>(provider, connectionString); }