/// <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>(); }
/// <summary> /// Initializes a new instance of the <see cref="Storage">Storage</see> class. /// </summary> public Storage() { this.StorageContext = new StorageContext(Storage.ConnectionString); }
public Storage() { this.StorageContext = new StorageContext(Storage.ConnectionString, Storage.Assemblies); }