public BlogContext CreateDbContext(string[] args)
        {
            var configuration = new ConfigurationBuilder()
                                .SetBasePath(Directory.GetCurrentDirectory())
                                .AddJsonFile("appsettings.Development.json")
                                .Build();

            var settings = new SqlSettings();

            configuration.GetSection("Sql").Bind(settings);

            return(new BlogContext(settings));
        }
 public BlogContext(SqlSettings settings)
 {
     _settings = settings;
 }