Class GastroSkyDatabaseContext
- Namespace
- GastroSky.Models.DatabaseContext
- Assembly
- GastroSky.Models.dll
public class GastroSkyDatabaseContext : DbContext, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IDisposable, IAsyncDisposable
- Inheritance
-
GastroSkyDatabaseContext
- Implements
- Inherited Members
Constructors
GastroSkyDatabaseContext(DbContextOptions<GastroSkyDatabaseContext>, IConfiguration)
public GastroSkyDatabaseContext(DbContextOptions<GastroSkyDatabaseContext> options, IConfiguration configuration)
Parameters
optionsDbContextOptions<GastroSkyDatabaseContext>configurationIConfiguration
Properties
BlacklistedEmailDomains
public DbSet<BlacklistedEmailDomain> BlacklistedEmailDomains { get; }
Property Value
Boosters
public DbSet<Booster> Boosters { get; }
Property Value
Companies
public DbSet<Company> Companies { get; }
Property Value
CompanySubscriptions
public DbSet<CompanySubscription> CompanySubscriptions { get; }
Property Value
Configuration
public DbSet<ConfigurationEntry> Configuration { get; }
Property Value
ContactCalls
public DbSet<ContactCall> ContactCalls { get; }
Property Value
Contacts
public DbSet<Contact> Contacts { get; }
Property Value
Countries
public DbSet<Country> Countries { get; }
Property Value
InterestedUsers
public DbSet<InterestedUser> InterestedUsers { get; }
Property Value
InvalidatedAuthTokens
public DbSet<InvalidatedAuthToken> InvalidatedAuthTokens { get; }
Property Value
KeyValuePairCache
public DbSet<KeyValuePairCacheEntry> KeyValuePairCache { get; }
Property Value
Locations
public DbSet<Location> Locations { get; }
Property Value
MailTemplates
public DbSet<MailTemplate> MailTemplates { get; }
Property Value
News
public DbSet<News> News { get; }
Property Value
OrderedProducts
public DbSet<OrderedProduct> OrderedProducts { get; }
Property Value
Orders
public DbSet<Order> Orders { get; }
Property Value
PepperBrands
public DbSet<PepperBrand> PepperBrands { get; }
Property Value
PostBoosters
public DbSet<PostBooster> PostBoosters { get; }
Property Value
PostImages
public DbSet<PostImage> PostImages { get; }
Property Value
PostPremiumUpgrades
public DbSet<PostPremiumUpgrade> PostPremiumUpgrades { get; }
Property Value
Posts
public DbSet<Post> Posts { get; }
Property Value
PremiumUpgrades
public DbSet<PremiumUpgrade> PremiumUpgrades { get; }
Property Value
Products
public DbSet<Product> Products { get; }
Property Value
Regions
public DbSet<Region> Regions { get; }
Property Value
SentEmails
public DbSet<SentEmail> SentEmails { get; }
Property Value
Slugs
public DbSet<Slug> Slugs { get; }
Property Value
SmtpCredentials
public DbSet<SmtpCredentials> SmtpCredentials { get; }
Property Value
Subscriptions
public DbSet<Subscription> Subscriptions { get; }
Property Value
TranslationRequests
public DbSet<TranslationRequest> TranslationRequests { get; }
Property Value
Translations
public DbSet<Translation> Translations { get; }
Property Value
Translators
public DbSet<Translator> Translators { get; }
Property Value
UserAgents
public DbSet<UserAgent> UserAgents { get; }
Property Value
UserClaims
public DbSet<UserClaim> UserClaims { get; }
Property Value
UserCompanies
public DbSet<UserCompany> UserCompanies { get; }
Property Value
UserFavorites
public DbSet<UserFavorite> UserFavorites { get; }
Property Value
UserLoginAttempts
public DbSet<UserLoginAttempt> UserLoginAttempts { get; }
Property Value
UserPostInteractions
public DbSet<UserPostInteraction> UserPostInteractions { get; }
Property Value
UserSubscriptions
public DbSet<UserSubscription> UserSubscriptions { get; }
Property Value
Users
public DbSet<User> Users { 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. However, it will still run when creating a compiled model.
See Modeling entity types and relationships for more information and examples.