Skip to content

Commit 4b74692

Browse files
committed
added members and default constructor
1 parent 6edf938 commit 4b74692

5 files changed

Lines changed: 37 additions & 0 deletions

File tree

GenericDataEntityHandler/GenericDataEntityHandler.sln renamed to src/GenericDataEntityHandler.sln

File renamed without changes.

GenericDataEntityHandler/GenericSQLEntityHandler/Enums.cs renamed to src/GenericSQLEntityHandler/Enums.cs

File renamed without changes.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Data.SqlClient;
4+
5+
6+
namespace GenericSQLEntityHandler
7+
{
8+
public class GenericSQLEntityHandler
9+
{
10+
#region Private Members
11+
12+
private bool useSqlTransaction = false;
13+
14+
private SqlTransaction sqlTransaction = null;
15+
16+
private Dictionary<Type, Dictionary<string, string>> columnInformationList = new Dictionary<Type, Dictionary<string, string>>();
17+
18+
#endregion Private Members
19+
20+
#region Public Memebers
21+
22+
public SqlConnection SqlConnection { get; private set; } = null;
23+
24+
#endregion Public Members
25+
26+
#region Events
27+
public event ErrorHandler ErrorOccurred;
28+
public delegate void ErrorHandler(Exception ex);
29+
#endregion Events
30+
31+
public GenericSQLEntityHandler(SqlConnection sqlConnection)
32+
{
33+
SqlConnection = sqlConnection;
34+
}
35+
}
36+
}

GenericDataEntityHandler/GenericSQLEntityHandler/GenericSQLEntityHandler.csproj renamed to src/GenericSQLEntityHandler/GenericSQLEntityHandler.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
</ItemGroup>
4242
<ItemGroup>
4343
<Compile Include="Enums.cs" />
44+
<Compile Include="GenericSQLEntityHandler.cs" />
4445
<Compile Include="Properties\AssemblyInfo.cs" />
4546
</ItemGroup>
4647
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

GenericDataEntityHandler/GenericSQLEntityHandler/Properties/AssemblyInfo.cs renamed to src/GenericSQLEntityHandler/Properties/AssemblyInfo.cs

File renamed without changes.

0 commit comments

Comments
 (0)