public static DbContextOptions <NexusDataContext> GetNexus()
        {
            var conStr = AppConfigUtilities.GetAppConfig <string>("NexusDatabase");

            if (string.IsNullOrEmpty(conStr))
            {
                conStr = AppConfigUtilities.GetAppConfig <string>("NexusDatabase");
            }
            var builder = new DbContextOptionsBuilder <NexusDataContext>();

            DbContextConfigurer.ConfigureNexusContext(
                builder,
                conStr);

            return(builder.Options);
        }
        public static DbContextOptions <DbReadDataContext> GetDbReadContext()
        {
            var conStr = AppConfigUtilities.GetAppConfig <string>("DbReadDataContext");

            if (string.IsNullOrEmpty(conStr))
            {
                conStr = AppConfigUtilities.GetAppConfig <string>("DbReadDataContext");
            }

            var builder = new DbContextOptionsBuilder <DbReadDataContext>();

            DbContextConfigurer.ConfigureDbReadContext(
                builder,
                conStr);

            return(builder.Options);
        }