Ejemplo n.º 1
0
        public UserMoviedataRepository(string tableName)
        {
            CloudStorageAccount storageAccount = CloudStorageAccount.Parse(Config.conn_string);
            CloudTableClient    tableClient    = storageAccount.CreateCloudTableClient(new TableClientConfiguration());

            TABLE_NAME = tableName;
            TABLE      = tableClient.GetTableReference(TABLE_NAME);
            TABLE.CreateIfNotExists();
        }
        public CatalogRepository()
        {
            CloudStorageAccount storageAccount = CloudStorageAccount.Parse(Config.conn_string);
            CloudTableClient    tableClient    = storageAccount.CreateCloudTableClient(new TableClientConfiguration());

            TABLE_NAME = Config.GENREDATATABLE_NAME;
            TABLE      = tableClient.GetTableReference(TABLE_NAME);
            TABLE.CreateIfNotExists();
        }