NDB.DataAccess.SqlServer Package preparation
parent
7b3776f27f
commit
795dc298b2
|
@ -7,12 +7,12 @@ namespace NDB.DataAccess.SqlServer
|
||||||
public abstract class BaseDataAccess
|
public abstract class BaseDataAccess
|
||||||
{
|
{
|
||||||
#region Fields
|
#region Fields
|
||||||
private string ConnectionString { get; set; }
|
private readonly string _connectionString;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
protected BaseDataAccess(string connectionString)
|
protected BaseDataAccess(string connectionString)
|
||||||
{
|
{
|
||||||
ConnectionString = connectionString;
|
_connectionString = connectionString;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Properties
|
#region Properties
|
||||||
|
@ -25,7 +25,7 @@ namespace NDB.DataAccess.SqlServer
|
||||||
#region OpenConnection
|
#region OpenConnection
|
||||||
public void OpenConnection(string connStr = null)
|
public void OpenConnection(string connStr = null)
|
||||||
{
|
{
|
||||||
Connection = new SqlConnection(connStr ?? ConnectionString);
|
Connection = new SqlConnection(connStr ?? _connectionString);
|
||||||
Connection.Open();
|
Connection.Open();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<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>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Reference in New Issue