Skip to content
jperl edited this page Nov 13, 2011 · 2 revisions

FileEntity

  • Id, Name, and OwnerRole properties stored in database
  • Extension methods to access data (stored in azure blob storage)
  • Has a property which allows it to be eager or lazy loaded

Cloud Storage

  • Actual bytes are stored in fstoreroledata. Checkout FileController for details

File Deletion

  • A file entity can be deleted normally on the client (not setup on the server yet)
  • In the CoreDomainService.Core's PersistChangeset method: all deleted file's are deleted from cloud storage

File Insertion and Updates

  • In the file.bytes set property: start inserting/overwrite the blob with the FileManager
  • In the DomainContext's discard changes method: Where undoing an insert, delete those file's cloud storage data. This must happen

FileManager

  • tools to help manage insertion/updates/deletes to the azure blob storage
  • communicates with FileController to get necessary access

FileController

  • tools to give access to insertion/updates/deletes to the azure blob storage
  • files are stored under fstoreroledata storage account. The container name is the File.OwnerRole.Id, the name is the File.Id
Clone this wiki locally