diff --git a/src/Orchard.Azure/Orchard.Azure.Web/Config/Sites.config b/src/Orchard.Azure/Orchard.Azure.Web/Config/Sites.config new file mode 100644 index 000000000..a9b061b5c --- /dev/null +++ b/src/Orchard.Azure/Orchard.Azure.Web/Config/Sites.config @@ -0,0 +1,31 @@ + + + + +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj b/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj index 3bcbf6d32..67bb7053c 100644 --- a/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj +++ b/src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj @@ -209,6 +209,7 @@ + Web.config diff --git a/src/Orchard.Web/Config/Sites.config b/src/Orchard.Web/Config/Sites.config new file mode 100644 index 000000000..a9b061b5c --- /dev/null +++ b/src/Orchard.Web/Config/Sites.config @@ -0,0 +1,31 @@ + + + + +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/src/Orchard.Web/Orchard.Web.csproj b/src/Orchard.Web/Orchard.Web.csproj index 9673292ec..0ff72fb9e 100644 --- a/src/Orchard.Web/Orchard.Web.csproj +++ b/src/Orchard.Web/Orchard.Web.csproj @@ -157,6 +157,7 @@ + Web.config diff --git a/src/Orchard/Data/SessionLocator.cs b/src/Orchard/Data/SessionLocator.cs index c6c9edae4..edbb8212e 100644 --- a/src/Orchard/Data/SessionLocator.cs +++ b/src/Orchard/Data/SessionLocator.cs @@ -24,9 +24,11 @@ namespace Orchard.Data { _sessionFactoryHolder = sessionFactoryHolder; _interceptors = interceptors; Logger = NullLogger.Instance; + IsolationLevel = IsolationLevel.ReadCommitted; } public ILogger Logger { get; set; } + public IsolationLevel IsolationLevel { get; set; } public ISession For(Type entityType) { Logger.Debug("Acquiring session for {0}", entityType); @@ -41,12 +43,12 @@ namespace Orchard.Data { if (_transaction == null) { Logger.Debug("Creating transaction on Demand"); - _transaction = _session.BeginTransaction(IsolationLevel.ReadCommitted); + _transaction = _session.BeginTransaction(IsolationLevel); } } public void RequireNew() { - RequireNew(IsolationLevel.ReadCommitted); + RequireNew(IsolationLevel); } public void RequireNew(IsolationLevel level) {