From 795dc298b2e64cb66b0e83f4c61865231a684442 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Thu, 21 May 2020 20:10:53 +0300 Subject: [PATCH] NDB.DataAccess.SqlServer Package preparation --- NDB.DataAccess.SqlServer/BaseDataAccess.cs | 6 +++--- NDB.DataAccess.SqlServer/NDB.DataAccess.SqlServer.csproj | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/NDB.DataAccess.SqlServer/BaseDataAccess.cs b/NDB.DataAccess.SqlServer/BaseDataAccess.cs index ed38f4d..e33e15a 100644 --- a/NDB.DataAccess.SqlServer/BaseDataAccess.cs +++ b/NDB.DataAccess.SqlServer/BaseDataAccess.cs @@ -7,12 +7,12 @@ namespace NDB.DataAccess.SqlServer public abstract class BaseDataAccess { #region Fields - private string ConnectionString { get; set; } + private readonly string _connectionString; #endregion protected BaseDataAccess(string connectionString) { - ConnectionString = connectionString; + _connectionString = connectionString; } #region Properties @@ -25,7 +25,7 @@ namespace NDB.DataAccess.SqlServer #region OpenConnection public void OpenConnection(string connStr = null) { - Connection = new SqlConnection(connStr ?? ConnectionString); + Connection = new SqlConnection(connStr ?? _connectionString); Connection.Open(); } #endregion diff --git a/NDB.DataAccess.SqlServer/NDB.DataAccess.SqlServer.csproj b/NDB.DataAccess.SqlServer/NDB.DataAccess.SqlServer.csproj index b598e6e..a468d29 100644 --- a/NDB.DataAccess.SqlServer/NDB.DataAccess.SqlServer.csproj +++ b/NDB.DataAccess.SqlServer/NDB.DataAccess.SqlServer.csproj @@ -2,6 +2,10 @@ netstandard2.0 + .NET standard library for accessing SQL Server database faster + https://dev.azure.com/tstanciu94/NDB + https://dev.azure.com/tstanciu94/NDB + .NET standard library for accessing SQL Server database faster