public static SysPlanContext GetInstance()
        {
            var optionsBuilder = new DbContextOptionsBuilder <SysPlanContext>();

            optionsBuilder.UseSqlServer(SettingsDefault.connectionString());

            return(new SysPlanContext(optionsBuilder.Options));
        }
        public static void ConfigureService(IServiceCollection services)
        {
            var stringConexaoComBancoDeDados = SettingsDefault.connectionString();

            services.AddDbContext <SysPlanContext>(options =>
                                                   options.UseSqlServer(stringConexaoComBancoDeDados).EnableSensitiveDataLogging(true));

            services.AddScoped <IDbContext, SysPlanContext>();
        }