How to create a new CloudBlobContainer instance for my .NET MVC project (on Azure storage emulator )? -


i have sample .net web-app project using sql db , azure blob storage. want have several versions of same project (copy, paste, , renanme folder -> , open in vs2013), problem each project copy points same database , azure blob. has created problems when running new modified copies of same project.

searching web, found entityframework code-first create new database project: go web.config file -> connection string -> , renaming 'initial catalog' property. old .mfd file remains, new 1 created following new name given.

i assuming similar possible azure blob containers? how can this? have tried rename cloudblobcontainer object instance (within class code), creates errors when running.

also, why cloudblobcontainer object assigned name in code, imagesblobcontainer, when under vs2013 -> server explorer -> azure -> storage -> development -> blobs -> here appears 'images'? shouldn't not have same name?

just sql db connection string, connection string storage account picked config file. if doing development, should see setting value of usedevelopmentstorage=true. tells application connect storage emulator.

now coming on question connecting different storage accounts, few things need understand:

  • there can 1 storage emulator on machine or in other words there can 1 storage account installed on computer.
  • if want have different versions of application connect different storage accounts, 1 thing have application connect cloud storage account instead of development storage account. change connection string in config file , application connect storage account.
  • alternate solution define container name in config file , change each version of application. see different containers in storage account.

Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -