Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 75863d5

Browse files
committed
Changing Database to DataCoreDatabase. Closes #88
1 parent f8cea8e commit 75863d5

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

‎DataCore.Database/Database.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
namespace DataCore.Database
1010
{
11-
public class Database : IDatabase
11+
public class DataCoreDatabase : IDatabase
1212
{
1313
private readonly IDatabaseDefinition _dbDefinition;
1414
private IDbConnection _connection;
1515

1616
public ITranslator Translator { get; }
1717

18-
public Database(IDatabaseDefinition dbDefinition, string connectionString)
18+
public DataCoreDatabase(IDatabaseDefinition dbDefinition, string connectionString)
1919
{
2020
_dbDefinition = dbDefinition;
2121
Translator = dbDefinition.GetTranslator();

‎DataCore.Test/TestHelper.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
using System;
22
using System.Collections;
3-
using System.Data;
4-
using System.Data.SqlClient;
5-
using System.Data.SQLite;
63
using DataCore.Database;
74
using DataCore.Database.MySql;
85
using DataCore.Database.Oracle;
96
using DataCore.Database.Postgres;
107
using DataCore.Database.Sqlite;
118
using DataCore.Database.SqlServer;
129
using DataCore.Test.Models;
13-
using MySql.Data.MySqlClient;
14-
using Npgsql;
1510
using NUnit.Framework;
16-
using Oracle.ManagedDataAccess.Client;
1711

1812
namespace DataCore.Test
1913
{
@@ -93,7 +87,7 @@ public static IDatabase GetDatabaseFor(DatabaseType dbType, string connectionStr
9387
break;
9488
}
9589

96-
var db = new Database.Database(dbDefinition, connectionString);
90+
var db = new Database.DataCoreDatabase(dbDefinition, connectionString);
9791
db.DropTableIfExists<TestClass>();
9892
db.DropTableIfExists<TestClass2>();
9993
db.DropTableIfExists<TestClass3>();

0 commit comments

Comments
 (0)