NDB.DataAccess.SqlServer Package preparation

messaging
Tudor Stanciu 2020-05-21 20:10:53 +03:00
parent 7b3776f27f
commit 795dc298b2
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -2,6 +2,10 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Description>.NET standard library for accessing SQL Server database faster</Description>
<PackageProjectUrl>https://dev.azure.com/tstanciu94/NDB</PackageProjectUrl>
<RepositoryUrl>https://dev.azure.com/tstanciu94/NDB</RepositoryUrl>
<PackageReleaseNotes>.NET standard library for accessing SQL Server database faster</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>