示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Storage">Storage</see> class.
 /// </summary>
 public Storage()
 {
     this.StorageContext = new StorageContext(Storage.ConnectionString);
 }
示例#2
0
 public void SetStorageContext(IStorageContext dbContext)
 {
     this.dbContext = dbContext as StorageContext;
     this.dbSet     = this.dbContext.Set <TEntity>();
 }