Пример #1
0
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            //Update JobLog table
            var jobLogEntityBuilder = new JobLogEntityBuilder(migrationBuilder, ActiveDatabase);

            jobLogEntityBuilder.AddIndex("IX_JobLog_JobId", "JobId");

            //Update Alias table
            var aliasEntityBuilder = new AliasEntityBuilder(migrationBuilder, ActiveDatabase);

            aliasEntityBuilder.AddIndex("IX_Alias_TenantId", "TenantId");
        }
Пример #2
0
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            //Update Tenant table
            var tenantEntityBuilder = new TenantEntityBuilder(migrationBuilder, ActiveDatabase);

            tenantEntityBuilder.AddIndex("IX_Tenant", "Name");

            //Update Alias table
            var aliasEntityBuilder = new AliasEntityBuilder(migrationBuilder, ActiveDatabase);

            aliasEntityBuilder.AddIndex("IX_Alias", "Name");

            //Update ModuleDefinitions Table
            var moduleDefinitionsEntityBuilder = new ModuleDefinitionsEntityBuilder(migrationBuilder, ActiveDatabase);

            moduleDefinitionsEntityBuilder.AddIndex("IX_ModuleDefinition", "ModuleDefinitionName");

            //Update Job Table
            var jobEntityBuilder = new JobEntityBuilder(migrationBuilder, ActiveDatabase);

            jobEntityBuilder.AddIndex("IX_Job", "JobType");
        }