예제 #1
0
 public void Save(string id, string contentType, byte[] blob)
 {
     using (var context = new BlobStorageDbContext(this.nameOrConnectionString))
     {
         context.Save(id, contentType, blob);
     }
 }
예제 #2
0
 public void Delete(string id)
 {
     using (var context = new BlobStorageDbContext(this.nameOrConnectionString))
     {
         context.Delete(id);
     }
 }
예제 #3
0
 public byte[] Find(string id)
 {
     using (var context = new BlobStorageDbContext(this.nameOrConnectionString))
     {
         return(context.Find(id));
     }
 }