Table of Contents

Class WarfareDbContext

Namespace
Uncreated.Warfare.Database
Assembly
Uncreated.Warfare.dll
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

options DbContextOptions<WarfareDbContext>

WarfareDbContext(ILogger<WarfareDbContext>?, DbContextOptions<WarfareDbContext>)

public WarfareDbContext(ILogger<WarfareDbContext>? logger, DbContextOptions<WarfareDbContext> options)

Parameters

logger ILogger<WarfareDbContext>
options DbContextOptions<WarfareDbContext>

Properties

AidRecords

public DbSet<AidRecord> AidRecords { get; }

Property Value

DbSet<AidRecord>

DamageRecords

public DbSet<DamageRecord> DamageRecords { get; }

Property Value

DbSet<DamageRecord>

DeathRecords

public DbSet<DeathRecord> DeathRecords { get; }

Property Value

DbSet<DeathRecord>

EliteBundles

public DbSet<EliteBundle> EliteBundles { get; }

Property Value

DbSet<EliteBundle>

Factions

public DbSet<Faction> Factions { get; }

Property Value

DbSet<Faction>

FobItemRecords

public DbSet<FobItemRecord> FobItemRecords { get; }

Property Value

DbSet<FobItemRecord>

FobRecords

public DbSet<FobRecord> FobRecords { get; }

Property Value

DbSet<FobRecord>

Games

public DbSet<GameRecord> Games { get; }

Property Value

DbSet<GameRecord>

GlobalBanWhitelists

public DbSet<GlobalBanWhitelist> GlobalBanWhitelists { get; }

Property Value

DbSet<GlobalBanWhitelist>

HWIDs

public DbSet<PlayerHWID> HWIDs { get; }

Property Value

DbSet<PlayerHWID>

HomebaseAuthenticationKeys

public DbSet<HomebaseAuthenticationKey> HomebaseAuthenticationKeys { get; }

Property Value

DbSet<HomebaseAuthenticationKey>

IPAddresses

public DbSet<PlayerIPAddress> IPAddresses { get; }

Property Value

DbSet<PlayerIPAddress>

KitAccess

public DbSet<KitAccess> KitAccess { get; }

Property Value

DbSet<KitAccess>

KitFavorites

public DbSet<KitFavorite> KitFavorites { get; }

Property Value

DbSet<KitFavorite>

KitHotkeys

public DbSet<KitHotkey> KitHotkeys { get; }

Property Value

DbSet<KitHotkey>

KitLayoutTransformations

public DbSet<KitLayoutTransformation> KitLayoutTransformations { get; }

Property Value

DbSet<KitLayoutTransformation>

Kits

public DbSet<KitModel> Kits { get; }

Property Value

DbSet<KitModel>

LanguagePreferences

public DbSet<LanguagePreferences> LanguagePreferences { get; }

Property Value

DbSet<LanguagePreferences>

Languages

public DbSet<LanguageInfo> Languages { get; }

Property Value

DbSet<LanguageInfo>

Loadouts

public DbSet<LoadoutPurchase> Loadouts { get; }

Property Value

DbSet<LoadoutPurchase>

Maps

public DbSet<MapData> Maps { get; }

Property Value

DbSet<MapData>
public DbSet<SteamDiscordPendingLink> PendingLinks { get; }

Property Value

DbSet<SteamDiscordPendingLink>

Permissions

public DbSet<Permission> Permissions { get; }

Property Value

DbSet<Permission>

Seasons

public DbSet<SeasonData> Seasons { get; }

Property Value

DbSet<SeasonData>

Sessions

public DbSet<SessionRecord> Sessions { get; }

Property Value

DbSet<SessionRecord>

UserData

public DbSet<WarfareUserData> UserData { get; }

Property Value

DbSet<WarfareUserData>

Whitelists

public DbSet<ItemWhitelist> Whitelists { get; }

Property Value

DbSet<ItemWhitelist>

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

modelBuilder ModelBuilder

The 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.