-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a base class for all ADO.NET databases
This will allow use of all ADO.NET databases without need to reference exact package for the ADO.NET component. For example, EfCore will be able to use PostgreSQL and SQL Server without need to depend on either package.
- Loading branch information
Showing
4 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace DataIsland; | ||
|
||
/// <summary> | ||
/// A base tenant for relational databases. | ||
/// </summary> | ||
/// <param name="ConnectionString">Connection string to the database.</param> | ||
/// <param name="DatabaseName">Name of the database (unescaped).</param> | ||
public abstract record AdoNetDatabaseTenant(string ConnectionString, string DatabaseName) | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
namespace DataIsland.SqlServer; | ||
|
||
public record SqlDatabaseTenant(string ConnectionString, SqlServerComponent Component, string DatabaseName); | ||
public record SqlDatabaseTenant(string ConnectionString, SqlServerComponent Component, string DatabaseName) | ||
: AdoNetDatabaseTenant(ConnectionString, DatabaseName); |