diff --git a/DatabaseWrapper/DatabaseClient.cs b/DatabaseWrapper/DatabaseClient.cs index a03b67e..f9b7baa 100644 --- a/DatabaseWrapper/DatabaseClient.cs +++ b/DatabaseWrapper/DatabaseClient.cs @@ -19,6 +19,17 @@ public class DatabaseClient : IDisposable { #region Public-Members + /// + /// The type of database. + /// + public DbTypes Type + { + get + { + return _DbType; + } + } + /// /// The connection string used to connect to the database server. /// diff --git a/DatabaseWrapper/DatabaseWrapper.csproj b/DatabaseWrapper/DatabaseWrapper.csproj index 898afb0..add8b42 100644 --- a/DatabaseWrapper/DatabaseWrapper.csproj +++ b/DatabaseWrapper/DatabaseWrapper.csproj @@ -3,7 +3,7 @@ netstandard2.0;net452 true - 1.4.2 + 1.4.3 Joel Christner Joel Christner Simple database wrapper for Microsoft SQL Server, MySQL, and PostgreSQL written in C# supporting dynamic query building and nesting using expressions. @@ -12,7 +12,7 @@ https://github.com/jchristn/DatabaseWrapper Github https://github.com/jchristn/DatabaseWrapper/blob/master/LICENSE.txt - Encapsulate table names in queries + Expose 'type' property database sql mysql mssql pgsql postgresql dynamic query builder datarow datatable https://raw.githubusercontent.com/jchristn/databasewrapper/master/assets/icon.ico diff --git a/README.md b/README.md index 9eccb20..e6519bb 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Core features: ## New in v1.4.x +- Expose ```Type``` property in ```DatabaseClient``` - Encapsulate table names in queries with the appropriate characters - Microsoft SQL: ``` [tablename] ``` - MySQL: ``` `tablename` ```