Skip to content

Commit

Permalink
Tiny stuffs.
Browse files Browse the repository at this point in the history
  • Loading branch information
smbadiwe committed Apr 22, 2017
1 parent ae2e7a6 commit dff0d0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using FluentNHibernate.Mapping;
using NHibernate;
using System;

namespace MultiTenancyFramework.NHibernate.NHManager.Listeners {
internal class AppFilterDefinition : FilterDefinition {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,6 @@ private static ISessionFactory BuildFactory(string instCode, string sessionKey)
if (dbConn.IsDisabled) {
throw new GeneralException($"The requested database for '{institution.Name}' no longer exists. Please contact administrator");
}
var logger = Utilities.Logger;
logger.Log($"Gotten dbConn for institution code '{instCode}'. Deleted? {dbConn.IsDeleted}. n Disabled? {dbConn.IsDisabled}");

// Sometimes, you just want to use the same DB for all the tenants. In that case, simply use one session factory
if (string.Equals(dbConn.ConnectionString, GetConnectionString(), StringComparison.InvariantCultureIgnoreCase)) {
Expand Down

0 comments on commit dff0d0e

Please sign in to comment.