Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
theandrunique committed Jan 27, 2024
1 parent 3e2d29c commit 3682eff
Show file tree
Hide file tree
Showing 5 changed files with 322 additions and 75 deletions.
4 changes: 3 additions & 1 deletion UniqModel.Tests/SqliteProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public async void SqliteTests()
LogManager.Configuration = config;

// creating an instance of core
Core core = new Core(DatabaseEngine.Sqlite, "Data Source=test.db", log, dropErrors: true);
Core core = new Core(DatabaseEngine.Sqlite, "Data Source=test.db", log, true, dropErrors: true);

UniqSettings.ShowValuesInLog = true;

// creating tables
core.Metadata.CreateAll();
Expand Down
2 changes: 1 addition & 1 deletion UniqModel/AsyncSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async public Task Execute(string query, object param = null)
throw;
}
}
async public Task<IDataReader> Execute(string query)
async public Task<IDataReader> ExecuteReader(string query)
{
try
{
Expand Down
Loading

0 comments on commit 3682eff

Please sign in to comment.