コード例 #1
0
        protected DataSessionBase(TProvider provider, DbConnection connection)
        {
            Argument.Assert.IsNotNull(provider, nameof(provider));
            Argument.Assert.IsNotNull(connection, nameof(connection));

            State = new PersistentSessionConnectionState <TProvider>(provider, connection);
        }
コード例 #2
0
        protected DataSessionBase(TProvider provider, string connectionString)
        {
            Argument.Assert.IsNotNull(provider, nameof(provider));
            Argument.Assert.IsNotNullOrEmpty(connectionString, nameof(connectionString));

            State = new PersistentSessionConnectionState <TProvider>(provider, connectionString);
        }