Class WarfareDbContext
public class WarfareDbContext : DbContext, IInfrastructure<IServiceProvider>, IUserDataDbContext, ILanguageDbContext, IKitsDbContext, IStatsDbContext, IGameDataDbContext, IFactionDbContext, ISeasonsDbContext, IWhitelistDbContext, IDbContext, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IDisposable, IAsyncDisposable, IResettableService
- Inheritance
-
WarfareDbContext
- Implements
- Inherited Members
- Extension Methods
Constructors
WarfareDbContext(DbContextOptions<WarfareDbContext>)
public WarfareDbContext(DbContextOptions<WarfareDbContext> options)
Parameters
optionsDbContextOptions<WarfareDbContext>
WarfareDbContext(ILogger<WarfareDbContext>?, DbContextOptions<WarfareDbContext>)
public WarfareDbContext(ILogger<WarfareDbContext>? logger, DbContextOptions<WarfareDbContext> options)
Parameters
loggerILogger<WarfareDbContext>optionsDbContextOptions<WarfareDbContext>
Properties
AidRecords
public DbSet<AidRecord> AidRecords { get; }
Property Value
DamageRecords
public DbSet<DamageRecord> DamageRecords { get; }
Property Value
DeathRecords
public DbSet<DeathRecord> DeathRecords { get; }
Property Value
EliteBundles
public DbSet<EliteBundle> EliteBundles { get; }
Property Value
Factions
public DbSet<Faction> Factions { get; }
Property Value
FobItemRecords
public DbSet<FobItemRecord> FobItemRecords { get; }
Property Value
FobRecords
public DbSet<FobRecord> FobRecords { get; }
Property Value
Games
public DbSet<GameRecord> Games { get; }
Property Value
GlobalBanWhitelists
public DbSet<GlobalBanWhitelist> GlobalBanWhitelists { get; }
Property Value
HWIDs
public DbSet<PlayerHWID> HWIDs { get; }
Property Value
HomebaseAuthenticationKeys
public DbSet<HomebaseAuthenticationKey> HomebaseAuthenticationKeys { get; }
Property Value
IPAddresses
public DbSet<PlayerIPAddress> IPAddresses { get; }
Property Value
KitAccess
public DbSet<KitAccess> KitAccess { get; }
Property Value
KitFavorites
public DbSet<KitFavorite> KitFavorites { get; }
Property Value
KitHotkeys
public DbSet<KitHotkey> KitHotkeys { get; }
Property Value
KitLayoutTransformations
public DbSet<KitLayoutTransformation> KitLayoutTransformations { get; }
Property Value
Kits
public DbSet<KitModel> Kits { get; }
Property Value
LanguagePreferences
public DbSet<LanguagePreferences> LanguagePreferences { get; }
Property Value
Languages
public DbSet<LanguageInfo> Languages { get; }
Property Value
Loadouts
public DbSet<LoadoutPurchase> Loadouts { get; }
Property Value
Maps
public DbSet<MapData> Maps { get; }
Property Value
PendingLinks
public DbSet<SteamDiscordPendingLink> PendingLinks { get; }
Property Value
Permissions
public DbSet<Permission> Permissions { get; }
Property Value
Seasons
public DbSet<SeasonData> Seasons { get; }
Property Value
Sessions
public DbSet<SessionRecord> Sessions { get; }
Property Value
UserData
public DbSet<WarfareUserData> UserData { get; }
Property Value
Whitelists
public DbSet<ItemWhitelist> Whitelists { get; }
Property Value
Methods
OnModelCreating(ModelBuilder)
Override this method to further configure the model that was discovered by convention from the entity types exposed in DbSet<TEntity> properties on your derived context. The resulting model may be cached and re-used for subsequent instances of your derived context.
protected override void OnModelCreating(ModelBuilder modelBuilder)
Parameters
modelBuilderModelBuilderThe builder being used to construct the model for this context. Databases (and other extensions) typically define extension methods on this object that allow you to configure aspects of the model that are specific to a given database.
Remarks
If a model is explicitly set on the options for this context (via UseModel(IModel)) then this method will not be run.