Skip to content
Permalink
Browse files

ANSI_NULLS ON and reflection fixes (#481)

* ANSI_NULLS ON fix

There were a couple of sprocs that did not conform to the standard the other sprocs were built with in reguards to ANSI_NULLS.
This patch brings them in line with the standard.

* NetTiersDataException reflection standards

The NetTiersDataException had a mix of exposed Fields and Properties.
This patch converts them all into Properties for easier use with reflection.
It also adds a default empty constructor.
  • Loading branch information
jeremeguenther committed Dec 10, 2019
1 parent bc8dced commit 76df447da81dff642b63f5e30889770c7895e4a2
Showing with 11 additions and 5 deletions.
  1. +1 −2 Source/DataAccessLayer.SqlClient/StoredProceduresXml.cst
  2. +10 −3 Source/DataAccessLayer/Utility.cst
@@ -609,7 +609,6 @@ GO
%>
</parameters>
<body><![CDATA[
SET ANSI_NULLS OFF
<%= GetSetTransactionIsolationLevelStatement() %>
SELECT
<% for (int i = 0; i < cols.Count; i++) { %>
@@ -623,7 +622,6 @@ GO
<% } %>

SELECT @@ROWCOUNT
SET ANSI_NULLS ON
]]></body>
</procedure>
<%
@@ -656,6 +654,7 @@ GO
}%>
</parameters>
<body><![CDATA[
<%= GetSetTransactionIsolationLevelStatement() %>
SELECT
<% for (int i = 0; i < cols.Count; i++) { %>
[<%= cols[i].Name %>]<% if (i < cols.Count - 1) { %>,<% } %>
@@ -563,7 +563,7 @@ namespace <%=DALNameSpace%>
/// Specify whether command data exists in this excaption
/// </summary>
///
public bool HasCommandData = false;
public bool HasCommandData { get; set; }

/// <summary>
/// The DbCommand object CommandText
@@ -593,17 +593,24 @@ namespace <%=DALNameSpace%>
/// <summary>
/// How long the Data call was running for
/// </summary>
public long ElapsedMilliseconds = 0;
public long ElapsedMilliseconds { get; set; }

/// <summary>
/// Which execute attempt triggered this error
/// </summary>
public int Attempt = 0;
public int Attempt { get; set; }

#endregion

#region Constructors

/// <summary>
/// Constructor to populate the base exception
/// </summary>
public NetTiersDataException() : base()
{
}

/// <summary>
/// Constructor to populate the base exception
/// </summary>

0 comments on commit 76df447

Please sign in to comment.
You can’t perform that action at this time.