avoid Local Context

This commit is contained in:
mschill committed 2026-09-15 08:29:29 -04:00
1 parent 7c95b115e4
commit fe95afcf8f
82 files changed
+249 -249

No files matched your search

@@ -586,7 +586,7 @@ namespace VEPROMS.CSLA.Library
if (!IsDirty) return;
try
{
using (SqlConnection cn = (SqlConnection)ApplicationContext.LocalContext["cn"])
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
{
if (cn.State == System.Data.ConnectionState.Closed) cn.Open();
using (SqlCommand cm = cn.CreateCommand())
@@ -698,7 +698,7 @@ namespace VEPROMS.CSLA.Library
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationAudit.SQLUpdate", GetHashCode());
try
{
using (SqlConnection cn = (SqlConnection)ApplicationContext.LocalContext["cn"])
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
{
if (cn.State == System.Data.ConnectionState.Closed) cn.Open();
if (base.IsDirty)
@@ -742,7 +742,7 @@ namespace VEPROMS.CSLA.Library
if (!IsDirty) return;
if (base.IsDirty)
{
using (SqlConnection cn = (SqlConnection)ApplicationContext.LocalContext["cn"])
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
{
if (cn.State == System.Data.ConnectionState.Closed) cn.Open();
if (IsNew)