-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from bobbahbrown/v1.3.9
Version 1.3.9 - Add Logging for Ban Parsing
- Loading branch information
Showing
39 changed files
with
1,893 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Collections.Generic; | ||
using Microsoft.EntityFrameworkCore.Design; | ||
using Microsoft.Extensions.Configuration; | ||
|
||
namespace CentCom.Common.Data.DesignTime | ||
{ | ||
public class MariaDbContextFactory : IDesignTimeDbContextFactory<MariaDbContext> | ||
{ | ||
public MariaDbContext CreateDbContext(string[] args) | ||
{ | ||
var conf = new Dictionary<string, string> | ||
{ | ||
{ "dbConfig:connectionString", "Host=127.0.0.1;Database=centcom_design;Username=centcom_parser;Password=spoof" }, | ||
{ "dbConfig:dbType", "MariaDb" }, | ||
{ "dbConfig:efcoreBuild", "any-value" } | ||
}; | ||
IConfiguration spoofedConfig = new ConfigurationBuilder().AddInMemoryCollection(conf).Build(); | ||
return new MariaDbContext(spoofedConfig); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.Extensions.Configuration; | ||
|
||
namespace CentCom.Common.Data | ||
{ | ||
public class MariaDbContext : DatabaseContext | ||
{ | ||
public MariaDbContext(IConfiguration configuration) : base(configuration) | ||
{ | ||
} | ||
|
||
protected override void OnConfiguring(DbContextOptionsBuilder options) | ||
{ | ||
var connStr = Configuration.GetSection("dbConfig")["connectionString"]; | ||
var efcoreBuild = | ||
Configuration.GetSection("dbConfig")["efcoreBuild"] != null; // Used for building migrations | ||
options.UseMySql(connStr, | ||
efcoreBuild ? MariaDbServerVersion.LatestSupportedServerVersion : ServerVersion.AutoDetect(connStr)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
218 changes: 218 additions & 0 deletions
218
CentCom.Common/Migrations/MariaDb/20210819220930_AddCheckHistory.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.