Пример #1
0
        public OleDbConnection GetConnection(string file)
        {
            var connection = new OleDbConnection(_connectionString.Get(file));

            connection.Open();
            return(connection);
        }
        protected RepositoryBase(IConnectionString connectionString, string tableName)
        {
            var storageAccount = CloudStorageAccount.Parse(connectionString.Get());
            var tableClient    = storageAccount.CreateCloudTableClient();

            Table = tableClient.GetTableReference(tableName);
            Table.CreateIfNotExists();
            TableName = tableName;
        }
Пример #3
0
 public void Should_return_the_connection_string_for_xlsx_file_extension()
 {
     Assert.AreEqual(TestData.UsersXlsxConnectionString, _connectionString.Get(TestData.UsersXlsx));
 }