mirror of
https://dev.azure.com/tstanciu94/Packages/_git/Netmash
synced 2025-06-21 19:22:38 +03:00
NDB.DataAccess.SqlServer Package preparation
This commit is contained in:
parent
7b3776f27f
commit
795dc298b2
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user