Esempio n. 1
0
 /// <summary>
 /// Sets the storage context that represents the SQLite database to work with.
 /// </summary>
 /// <param name="dbContext">The storage context to set.</param>
 public void SetStorageContext(IStorageContext dbContext)
 {
     this.dbContext = dbContext as StorageContext;
     this.dbSet     = this.dbContext.Set <TEntity>();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Storage">Storage</see> class.
 /// </summary>
 public Storage()
 {
     this.StorageContext = new StorageContext(Storage.ConnectionString);
 }
Esempio n. 3
0
 public Storage()
 {
     this.StorageContext = new StorageContext(Storage.ConnectionString, Storage.Assemblies);
 }