Exemple #1
0
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);

            // All the model definitions has been moved to the
            // model files themselves for better code readability

            // Shard Manager
            Shard.OnModelCreating(builder);
            Tenant.OnModelCreating(builder);
            GlobalUser.OnModelCreating(builder);
            TenantMembership.OnModelCreating(builder);

            // Localization
            Culture.OnModelCreating(builder);
            Translation.OnModelCreating(builder);
        }