@tsonic/efcore 10.0.2 → 10.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/Microsoft.EntityFrameworkCore/internal/index.d.ts +18 -35
  2. package/Microsoft.EntityFrameworkCore.ChangeTracking/internal/index.d.ts +28 -69
  3. package/Microsoft.EntityFrameworkCore.ChangeTracking.Internal/internal/index.d.ts +153 -261
  4. package/Microsoft.EntityFrameworkCore.Design/internal/index.d.ts +43 -55
  5. package/Microsoft.EntityFrameworkCore.Design.Internal/internal/index.d.ts +8 -16
  6. package/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.d.ts +24 -46
  7. package/Microsoft.EntityFrameworkCore.Diagnostics.Internal/internal/index.d.ts +8 -50
  8. package/Microsoft.EntityFrameworkCore.Infrastructure/internal/index.d.ts +160 -247
  9. package/Microsoft.EntityFrameworkCore.Infrastructure.Internal/internal/index.d.ts +5 -9
  10. package/Microsoft.EntityFrameworkCore.Internal/internal/index.d.ts +0 -3
  11. package/Microsoft.EntityFrameworkCore.Metadata/internal/index.d.ts +304 -407
  12. package/Microsoft.EntityFrameworkCore.Metadata.Builders/internal/index.d.ts +130 -268
  13. package/Microsoft.EntityFrameworkCore.Metadata.Conventions/internal/index.d.ts +266 -598
  14. package/Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure/internal/index.d.ts +6 -15
  15. package/Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal/internal/index.d.ts +1 -1
  16. package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/index.d.ts +436 -763
  17. package/Microsoft.EntityFrameworkCore.Migrations/internal/index.d.ts +95 -116
  18. package/Microsoft.EntityFrameworkCore.Migrations.Internal/internal/index.d.ts +56 -64
  19. package/Microsoft.EntityFrameworkCore.Migrations.Operations/internal/index.d.ts +229 -347
  20. package/Microsoft.EntityFrameworkCore.Migrations.Operations.Builders/internal/index.d.ts +2 -6
  21. package/Microsoft.EntityFrameworkCore.Query/internal/index.d.ts +468 -719
  22. package/Microsoft.EntityFrameworkCore.Query.Internal/internal/index.d.ts +151 -301
  23. package/Microsoft.EntityFrameworkCore.Query.SqlExpressions/internal/index.d.ts +144 -335
  24. package/Microsoft.EntityFrameworkCore.Scaffolding/internal/index.d.ts +4 -10
  25. package/Microsoft.EntityFrameworkCore.Scaffolding.Metadata/internal/index.d.ts +73 -102
  26. package/Microsoft.EntityFrameworkCore.Storage/internal/index.d.ts +244 -452
  27. package/Microsoft.EntityFrameworkCore.Storage.Internal/internal/index.d.ts +19 -47
  28. package/Microsoft.EntityFrameworkCore.Storage.Json/internal/index.d.ts +3 -32
  29. package/Microsoft.EntityFrameworkCore.Storage.ValueConversion/internal/index.d.ts +3 -9
  30. package/Microsoft.EntityFrameworkCore.Update/internal/index.d.ts +114 -133
  31. package/Microsoft.EntityFrameworkCore.Update.Internal/internal/index.d.ts +21 -43
  32. package/Microsoft.EntityFrameworkCore.ValueGeneration/internal/index.d.ts +21 -49
  33. package/Microsoft.EntityFrameworkCore.ValueGeneration.Internal/internal/index.d.ts +5 -14
  34. package/package.json +1 -1
@@ -146,25 +146,19 @@ export interface IMigrator$instance {
146
146
 
147
147
  export type IMigrator = IMigrator$instance;
148
148
 
149
- export abstract class HistoryRepository$protected {
150
- protected readonly Dependencies: HistoryRepositoryDependencies;
151
- protected readonly ExistsSql: string;
152
- protected readonly GetAppliedMigrationsSql: string;
153
- protected readonly MigrationIdColumnName: string;
154
- protected readonly ProductVersionColumnName: string;
155
- protected readonly SqlGenerationHelper: ISqlGenerationHelper;
156
- protected readonly TableName: string;
157
- protected readonly TableSchema: string | undefined;
158
- protected ConfigureTable(history: EntityTypeBuilder_1<HistoryRow>): void;
159
- protected GetCreateCommands(): IReadOnlyList<MigrationCommand>;
160
- protected abstract InterpretExistsResult(value: unknown): boolean;
161
- }
162
-
163
-
164
- export interface HistoryRepository$instance extends HistoryRepository$protected {
149
+ export interface HistoryRepository$instance {
150
+ readonly Dependencies: HistoryRepositoryDependencies;
151
+ readonly ExistsSql: string;
152
+ readonly GetAppliedMigrationsSql: string;
165
153
  readonly LockReleaseBehavior: LockReleaseBehavior;
154
+ readonly MigrationIdColumnName: string;
155
+ readonly ProductVersionColumnName: string;
156
+ readonly SqlGenerationHelper: ISqlGenerationHelper;
157
+ readonly TableName: string;
158
+ readonly TableSchema: string | undefined;
166
159
  AcquireDatabaseLock(): IMigrationsDatabaseLock;
167
160
  AcquireDatabaseLockAsync(cancellationToken?: CancellationToken): Task<IMigrationsDatabaseLock>;
161
+ ConfigureTable(history: EntityTypeBuilder_1<HistoryRow>): void;
168
162
  Create(): void;
169
163
  CreateAsync(cancellationToken?: CancellationToken): Task;
170
164
  Exists(): boolean;
@@ -173,16 +167,17 @@ export interface HistoryRepository$instance extends HistoryRepository$protected
173
167
  GetAppliedMigrationsAsync(cancellationToken?: CancellationToken): Task<IReadOnlyList<HistoryRow>>;
174
168
  GetBeginIfExistsScript(migrationId: string): string;
175
169
  GetBeginIfNotExistsScript(migrationId: string): string;
170
+ GetCreateCommands(): IReadOnlyList<MigrationCommand>;
176
171
  GetCreateIfNotExistsScript(): string;
177
172
  GetCreateScript(): string;
178
173
  GetDeleteScript(migrationId: string): string;
179
174
  GetEndIfScript(): string;
180
175
  GetInsertScript(row: HistoryRow): string;
176
+ InterpretExistsResult(value: unknown): boolean;
181
177
  }
182
178
 
183
179
 
184
- export const HistoryRepository: {
185
- new(dependencies: HistoryRepositoryDependencies): HistoryRepository;
180
+ export const HistoryRepository: (abstract new(dependencies: HistoryRepositoryDependencies) => HistoryRepository) & {
186
181
  readonly DefaultTableName: string;
187
182
  };
188
183
 
@@ -240,24 +235,19 @@ export const HistoryRow: {
240
235
 
241
236
  export type HistoryRow = HistoryRow$instance;
242
237
 
243
- export abstract class Migration$protected {
244
- protected BuildTargetModel(modelBuilder: ModelBuilder): void;
245
- protected Down(migrationBuilder: MigrationBuilder): void;
246
- protected abstract Up(migrationBuilder: MigrationBuilder): void;
247
- }
248
-
249
-
250
- export interface Migration$instance extends Migration$protected {
238
+ export interface Migration$instance {
251
239
  get ActiveProvider(): string | undefined;
252
- set ActiveProvider(value: string);
240
+ set ActiveProvider(value: string | undefined);
253
241
  readonly DownOperations: IReadOnlyList<MigrationOperation>;
254
242
  readonly TargetModel: IModel;
255
243
  readonly UpOperations: IReadOnlyList<MigrationOperation>;
244
+ BuildTargetModel(modelBuilder: ModelBuilder): void;
245
+ Down(migrationBuilder: MigrationBuilder): void;
246
+ Up(migrationBuilder: MigrationBuilder): void;
256
247
  }
257
248
 
258
249
 
259
- export const Migration: {
260
- new(): Migration;
250
+ export const Migration: (abstract new() => Migration) & {
261
251
  readonly InitialDatabase: string;
262
252
  };
263
253
 
@@ -367,12 +357,8 @@ export const MigrationCommand: {
367
357
 
368
358
  export type MigrationCommand = MigrationCommand$instance;
369
359
 
370
- export abstract class MigrationCommandListBuilder$protected {
371
- protected readonly Dependencies: MigrationsSqlGeneratorDependencies;
372
- }
373
-
374
-
375
- export interface MigrationCommandListBuilder$instance extends MigrationCommandListBuilder$protected {
360
+ export interface MigrationCommandListBuilder$instance {
361
+ readonly Dependencies: MigrationsSqlGeneratorDependencies;
376
362
  Append(o: string): MigrationCommandListBuilder;
377
363
  AppendLine(): MigrationCommandListBuilder;
378
364
  AppendLine(value: string): MigrationCommandListBuilder;
@@ -396,11 +382,12 @@ export type MigrationCommandListBuilder = MigrationCommandListBuilder$instance;
396
382
  export interface MigrationExecutionState$instance {
397
383
  AnyOperationPerformed: boolean;
398
384
  get CurrentMigrationId(): string | undefined;
399
- set CurrentMigrationId(value: string);
385
+ set CurrentMigrationId(value: string | undefined);
400
386
  get DatabaseLock(): IMigrationsDatabaseLock | undefined;
401
- set DatabaseLock(value: IMigrationsDatabaseLock);
387
+ set DatabaseLock(value: IMigrationsDatabaseLock | undefined);
402
388
  LastCommittedCommandIndex: int;
403
- Transaction: IDbContextTransaction;
389
+ get Transaction(): IDbContextTransaction | undefined;
390
+ set Transaction(value: IDbContextTransaction | undefined);
404
391
  }
405
392
 
406
393
 
@@ -411,12 +398,8 @@ export const MigrationExecutionState: {
411
398
 
412
399
  export type MigrationExecutionState = MigrationExecutionState$instance;
413
400
 
414
- export abstract class MigrationsAnnotationProvider$protected {
415
- protected readonly Dependencies: MigrationsAnnotationProviderDependencies;
416
- }
417
-
418
-
419
- export interface MigrationsAnnotationProvider$instance extends MigrationsAnnotationProvider$protected {
401
+ export interface MigrationsAnnotationProvider$instance {
402
+ readonly Dependencies: MigrationsAnnotationProviderDependencies;
420
403
  ForRemove(model: IRelationalModel): IEnumerable<IAnnotation>;
421
404
  ForRemove(table: ITable): IEnumerable<IAnnotation>;
422
405
  ForRemove(column: IColumn): IEnumerable<IAnnotation>;
@@ -462,79 +445,75 @@ export const MigrationsAnnotationProviderDependencies: {
462
445
 
463
446
  export type MigrationsAnnotationProviderDependencies = MigrationsAnnotationProviderDependencies$instance;
464
447
 
465
- export abstract class MigrationsSqlGenerator$protected {
466
- protected readonly Dependencies: MigrationsSqlGeneratorDependencies;
467
- protected Options: MigrationsSqlGenerationOptions;
468
- protected readonly SqlGenerator: IUpdateSqlGenerator;
469
- protected readonly VersionComparer: IComparer<System_Internal.String>;
470
- protected CheckConstraint(operation: AddCheckConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
471
- protected ColumnDefinition(operation: AddColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
472
- protected ColumnDefinition(schema: string, table: string, name: string, operation: ColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
473
- protected ColumnList(columns: string[]): string;
474
- protected ComputedColumnDefinition(schema: string, table: string, name: string, operation: ColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
475
- protected CreateTableCheckConstraints(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
476
- protected CreateTableColumns(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
477
- protected CreateTableConstraints(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
478
- protected CreateTableForeignKeys(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
479
- protected CreateTablePrimaryKeyConstraint(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
480
- protected CreateTableUniqueConstraints(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
481
- protected DefaultValue(defaultValue: unknown, defaultValueSql: string, columnType: string, builder: MigrationCommandListBuilder): void;
482
- protected EndStatement(builder: MigrationCommandListBuilder, suppressTransaction?: boolean): void;
483
- protected ForeignKeyAction(referentialAction: ReferentialAction, builder: MigrationCommandListBuilder): void;
484
- protected ForeignKeyConstraint(operation: AddForeignKeyOperation, model: IModel, builder: MigrationCommandListBuilder): void;
485
- protected Generate(operation: MigrationOperation, model: IModel, builder: MigrationCommandListBuilder): void;
486
- protected Generate(operation: AddUniqueConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
487
- protected Generate(operation: AddCheckConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
488
- protected Generate(operation: AlterColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
489
- protected Generate(operation: AlterDatabaseOperation, model: IModel, builder: MigrationCommandListBuilder): void;
490
- protected Generate(operation: RenameIndexOperation, model: IModel, builder: MigrationCommandListBuilder): void;
491
- protected Generate(operation: AlterSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
492
- protected Generate(operation: AlterTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
493
- protected Generate(operation: RenameTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
494
- protected Generate(operation: EnsureSchemaOperation, model: IModel, builder: MigrationCommandListBuilder): void;
495
- protected Generate(operation: CreateSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
496
- protected Generate(operation: DropSchemaOperation, model: IModel, builder: MigrationCommandListBuilder): void;
497
- protected Generate(operation: DropSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
498
- protected Generate(operation: DropUniqueConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
499
- protected Generate(operation: DropCheckConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
500
- protected Generate(operation: RenameColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
501
- protected Generate(operation: RenameSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
502
- protected Generate(operation: RestartSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
503
- protected Generate(operation: SqlOperation, model: IModel, builder: MigrationCommandListBuilder): void;
504
- protected Generate(operation: DeleteDataOperation, model: IModel, builder: MigrationCommandListBuilder): void;
505
- protected Generate(operation: UpdateDataOperation, model: IModel, builder: MigrationCommandListBuilder): void;
506
- protected Generate(operation: AddColumnOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
507
- protected Generate(operation: AddForeignKeyOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
508
- protected Generate(operation: AddPrimaryKeyOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
509
- protected Generate(operation: CreateIndexOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
510
- protected Generate(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
511
- protected Generate(operation: DropColumnOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
512
- protected Generate(operation: DropForeignKeyOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
513
- protected Generate(operation: DropIndexOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
514
- protected Generate(operation: DropPrimaryKeyOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
515
- protected Generate(operation: DropTableOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
516
- protected Generate(operation: InsertDataOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
517
- protected GenerateIndexColumnList(operation: CreateIndexOperation, model: IModel, builder: MigrationCommandListBuilder): void;
518
- protected GenerateModificationCommands(operation: InsertDataOperation, model: IModel): IEnumerable<IReadOnlyModificationCommand>;
519
- protected GenerateModificationCommands(operation: DeleteDataOperation, model: IModel): IEnumerable<IReadOnlyModificationCommand>;
520
- protected GenerateModificationCommands(operation: UpdateDataOperation, model: IModel): IEnumerable<IReadOnlyModificationCommand>;
521
- protected GetColumnType(schema: string, tableName: string, name: string, operation: ColumnOperation, model: IModel): string;
522
- protected HasLegacyRenameOperations(model: IModel): boolean;
523
- protected IndexOptions(operation: MigrationOperation, model: IModel, builder: MigrationCommandListBuilder): void;
524
- protected IndexTraits(operation: MigrationOperation, model: IModel, builder: MigrationCommandListBuilder): void;
525
- protected IsOldColumnSupported(model: IModel): boolean;
526
- protected PrimaryKeyConstraint(operation: AddPrimaryKeyOperation, model: IModel, builder: MigrationCommandListBuilder): void;
527
- protected SequenceOptions(operation: AlterSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
528
- protected SequenceOptions(operation: CreateSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
529
- protected SequenceOptions(schema: string, name: string, operation: SequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
530
- protected SequenceOptions(schema: string, name: string, operation: SequenceOperation, model: IModel, builder: MigrationCommandListBuilder, forAlter: boolean): void;
531
- protected TryGetVersion(model: IModel, version: string): boolean;
532
- protected UniqueConstraint(operation: AddUniqueConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
533
- }
534
-
535
-
536
- export interface MigrationsSqlGenerator$instance extends MigrationsSqlGenerator$protected {
448
+ export interface MigrationsSqlGenerator$instance {
449
+ readonly Dependencies: MigrationsSqlGeneratorDependencies;
450
+ Options: MigrationsSqlGenerationOptions;
451
+ readonly SqlGenerator: IUpdateSqlGenerator;
452
+ readonly VersionComparer: IComparer<System_Internal.String>;
453
+ CheckConstraint(operation: AddCheckConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
454
+ ColumnDefinition(operation: AddColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
455
+ ColumnDefinition(schema: string, table: string, name: string, operation: ColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
456
+ ColumnList(columns: string[]): string;
457
+ ComputedColumnDefinition(schema: string, table: string, name: string, operation: ColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
458
+ CreateTableCheckConstraints(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
459
+ CreateTableColumns(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
460
+ CreateTableConstraints(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
461
+ CreateTableForeignKeys(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
462
+ CreateTablePrimaryKeyConstraint(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
463
+ CreateTableUniqueConstraints(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
464
+ DefaultValue(defaultValue: unknown, defaultValueSql: string, columnType: string, builder: MigrationCommandListBuilder): void;
465
+ EndStatement(builder: MigrationCommandListBuilder, suppressTransaction?: boolean): void;
466
+ ForeignKeyAction(referentialAction: ReferentialAction, builder: MigrationCommandListBuilder): void;
467
+ ForeignKeyConstraint(operation: AddForeignKeyOperation, model: IModel, builder: MigrationCommandListBuilder): void;
537
468
  Generate(operations: IReadOnlyList<MigrationOperation>, model?: IModel, options?: MigrationsSqlGenerationOptions): IReadOnlyList<MigrationCommand>;
469
+ Generate(operation: MigrationOperation, model: IModel, builder: MigrationCommandListBuilder): void;
470
+ Generate(operation: AddColumnOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
471
+ Generate(operation: AddForeignKeyOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
472
+ Generate(operation: AddPrimaryKeyOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
473
+ Generate(operation: AddUniqueConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
474
+ Generate(operation: AddCheckConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
475
+ Generate(operation: AlterColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
476
+ Generate(operation: AlterDatabaseOperation, model: IModel, builder: MigrationCommandListBuilder): void;
477
+ Generate(operation: RenameIndexOperation, model: IModel, builder: MigrationCommandListBuilder): void;
478
+ Generate(operation: AlterSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
479
+ Generate(operation: AlterTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
480
+ Generate(operation: RenameTableOperation, model: IModel, builder: MigrationCommandListBuilder): void;
481
+ Generate(operation: CreateIndexOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
482
+ Generate(operation: EnsureSchemaOperation, model: IModel, builder: MigrationCommandListBuilder): void;
483
+ Generate(operation: CreateSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
484
+ Generate(operation: CreateTableOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
485
+ Generate(operation: DropColumnOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
486
+ Generate(operation: DropForeignKeyOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
487
+ Generate(operation: DropIndexOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
488
+ Generate(operation: DropPrimaryKeyOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
489
+ Generate(operation: DropSchemaOperation, model: IModel, builder: MigrationCommandListBuilder): void;
490
+ Generate(operation: DropSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
491
+ Generate(operation: DropTableOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
492
+ Generate(operation: DropUniqueConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
493
+ Generate(operation: DropCheckConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
494
+ Generate(operation: RenameColumnOperation, model: IModel, builder: MigrationCommandListBuilder): void;
495
+ Generate(operation: RenameSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
496
+ Generate(operation: RestartSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
497
+ Generate(operation: SqlOperation, model: IModel, builder: MigrationCommandListBuilder): void;
498
+ Generate(operation: InsertDataOperation, model: IModel, builder: MigrationCommandListBuilder, terminate?: boolean): void;
499
+ Generate(operation: DeleteDataOperation, model: IModel, builder: MigrationCommandListBuilder): void;
500
+ Generate(operation: UpdateDataOperation, model: IModel, builder: MigrationCommandListBuilder): void;
501
+ GenerateIndexColumnList(operation: CreateIndexOperation, model: IModel, builder: MigrationCommandListBuilder): void;
502
+ GenerateModificationCommands(operation: InsertDataOperation, model: IModel): IEnumerable<IReadOnlyModificationCommand>;
503
+ GenerateModificationCommands(operation: DeleteDataOperation, model: IModel): IEnumerable<IReadOnlyModificationCommand>;
504
+ GenerateModificationCommands(operation: UpdateDataOperation, model: IModel): IEnumerable<IReadOnlyModificationCommand>;
505
+ GetColumnType(schema: string, tableName: string, name: string, operation: ColumnOperation, model: IModel): string;
506
+ HasLegacyRenameOperations(model: IModel): boolean;
507
+ IndexOptions(operation: MigrationOperation, model: IModel, builder: MigrationCommandListBuilder): void;
508
+ IndexTraits(operation: MigrationOperation, model: IModel, builder: MigrationCommandListBuilder): void;
509
+ IsOldColumnSupported(model: IModel): boolean;
510
+ PrimaryKeyConstraint(operation: AddPrimaryKeyOperation, model: IModel, builder: MigrationCommandListBuilder): void;
511
+ SequenceOptions(operation: AlterSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
512
+ SequenceOptions(operation: CreateSequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
513
+ SequenceOptions(schema: string, name: string, operation: SequenceOperation, model: IModel, builder: MigrationCommandListBuilder): void;
514
+ SequenceOptions(schema: string, name: string, operation: SequenceOperation, model: IModel, builder: MigrationCommandListBuilder, forAlter: boolean): void;
515
+ TryGetVersion(model: IModel, version: string): boolean;
516
+ UniqueConstraint(operation: AddUniqueConstraintOperation, model: IModel, builder: MigrationCommandListBuilder): void;
538
517
  }
539
518
 
540
519
 
@@ -92,61 +92,57 @@ export interface MigrationsIdGenerator$instance extends Microsoft_EntityFramewor
92
92
  export type MigrationsIdGenerator = MigrationsIdGenerator$instance & __MigrationsIdGenerator$views;
93
93
 
94
94
 
95
- export abstract class MigrationsModelDiffer$protected {
96
- protected readonly CommandBatchPreparerDependencies: CommandBatchPreparerDependencies;
97
- protected readonly MigrationsAnnotationProvider: IMigrationsAnnotationProvider;
98
- protected readonly RelationalAnnotationProvider: IRelationalAnnotationProvider;
99
- protected readonly RowIdentityMapFactory: IRowIdentityMapFactory;
100
- protected readonly TypeMappingSource: IRelationalTypeMappingSource;
101
- protected Add(target: IRelationalModel, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
102
- protected Add(target: string, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
103
- protected Add(target: ITable, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
104
- protected Add(target: IUniqueConstraint, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
105
- protected Add(target: IForeignKeyConstraint, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
106
- protected Add(target: ITableIndex, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
107
- protected Add(target: ICheckConstraint, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
108
- protected Add(target: ISequence, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
109
- protected Add(target: IColumn, diffContext: MigrationsModelDiffer_DiffContext, inline?: boolean): IEnumerable<MigrationOperation>;
110
- protected Diff(source: IRelationalModel, target: IRelationalModel, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
111
- protected Diff(source: IEnumerable<System_Internal.String>, target: IEnumerable<System_Internal.String>, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
112
- protected Diff(source: string, target: string, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
113
- protected Diff(source: IEnumerable<ITable>, target: IEnumerable<ITable>, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
114
- protected Diff(source: ITable, target: ITable, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
115
- protected Diff(source: IEnumerable<IColumn>, target: IEnumerable<IColumn>, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
116
- protected Diff(source: IColumn, target: IColumn, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
117
- protected Diff(source: IEnumerable<IUniqueConstraint>, target: IEnumerable<IUniqueConstraint>, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
118
- protected Diff(source: IUniqueConstraint, target: IUniqueConstraint, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
119
- protected Diff(source: IEnumerable<IForeignKeyConstraint>, target: IEnumerable<IForeignKeyConstraint>, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
120
- protected Diff(source: IForeignKeyConstraint, target: IForeignKeyConstraint, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
121
- protected Diff(source: IEnumerable<ITableIndex>, target: IEnumerable<ITableIndex>, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
122
- protected Diff(source: ITableIndex, target: ITableIndex, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
123
- protected Diff(source: IEnumerable<ICheckConstraint>, target: IEnumerable<ICheckConstraint>, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
124
- protected Diff(source: ICheckConstraint, target: ICheckConstraint, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
125
- protected Diff(source: IEnumerable<ISequence>, target: IEnumerable<ISequence>, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
126
- protected Diff(source: ISequence, target: ISequence, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
127
- protected DiffCollection<T>(sources: IEnumerable<T>, targets: IEnumerable<T>, diffContext: MigrationsModelDiffer_DiffContext, diff: Func<T, T, MigrationsModelDiffer_DiffContext, IEnumerable<MigrationOperation>>, add: Func<T, MigrationsModelDiffer_DiffContext, IEnumerable<MigrationOperation>>, remove: Func<T, MigrationsModelDiffer_DiffContext, IEnumerable<MigrationOperation>>, ...predicates: Func<T, T, MigrationsModelDiffer_DiffContext, System_Internal.Boolean>[]): IEnumerable<MigrationOperation>;
128
- protected DiffData(source: IRelationalModel, target: IRelationalModel, diffContext: MigrationsModelDiffer_DiffContext): void;
129
- protected GetDataOperations(source: IRelationalModel, target: IRelationalModel, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
130
- protected GetDefaultValue(type: Type): unknown | undefined;
131
- protected GetSchemas(model: IRelationalModel): IEnumerable<System_Internal.String>;
132
- protected HasDifferences(source: IEnumerable<IAnnotation>, target: IEnumerable<IAnnotation>): boolean;
133
- protected Remove(source: IRelationalModel, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
134
- protected Remove(source: string, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
135
- protected Remove(source: ITable, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
136
- protected Remove(source: IColumn, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
137
- protected Remove(source: IUniqueConstraint, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
138
- protected Remove(source: IForeignKeyConstraint, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
139
- protected Remove(source: ITableIndex, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
140
- protected Remove(source: ICheckConstraint, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
141
- protected Remove(source: ISequence, diffContext: MigrationsModelDiffer_DiffContext): IEnumerable<MigrationOperation>;
142
- protected Sort(operations: IEnumerable<MigrationOperation>, diffContext: MigrationsModelDiffer_DiffContext): IReadOnlyList<MigrationOperation>;
143
- protected TrackData(source: IRelationalModel, target: IRelationalModel, diffContext: MigrationsModelDiffer_DiffContext): void;
144
- }
145
-
146
-
147
- export interface MigrationsModelDiffer$instance extends MigrationsModelDiffer$protected {
95
+ export interface MigrationsModelDiffer$instance {
96
+ readonly CommandBatchPreparerDependencies: CommandBatchPreparerDependencies;
97
+ readonly MigrationsAnnotationProvider: IMigrationsAnnotationProvider;
98
+ readonly RelationalAnnotationProvider: IRelationalAnnotationProvider;
99
+ readonly RowIdentityMapFactory: IRowIdentityMapFactory;
100
+ readonly TypeMappingSource: IRelationalTypeMappingSource;
101
+ Add(target: IRelationalModel, diffContext: unknown): IEnumerable<MigrationOperation>;
102
+ Add(target: string, diffContext: unknown): IEnumerable<MigrationOperation>;
103
+ Add(target: ITable, diffContext: unknown): IEnumerable<MigrationOperation>;
104
+ Add(target: IColumn, diffContext: unknown, inline?: boolean): IEnumerable<MigrationOperation>;
105
+ Add(target: IUniqueConstraint, diffContext: unknown): IEnumerable<MigrationOperation>;
106
+ Add(target: IForeignKeyConstraint, diffContext: unknown): IEnumerable<MigrationOperation>;
107
+ Add(target: ITableIndex, diffContext: unknown): IEnumerable<MigrationOperation>;
108
+ Add(target: ICheckConstraint, diffContext: unknown): IEnumerable<MigrationOperation>;
109
+ Add(target: ISequence, diffContext: unknown): IEnumerable<MigrationOperation>;
110
+ Diff(source: IRelationalModel, target: IRelationalModel, diffContext: unknown): IEnumerable<MigrationOperation>;
111
+ Diff(source: IEnumerable<System_Internal.String>, target: IEnumerable<System_Internal.String>, diffContext: unknown): IEnumerable<MigrationOperation>;
112
+ Diff(source: string, target: string, diffContext: unknown): IEnumerable<MigrationOperation>;
113
+ Diff(source: IEnumerable<ITable>, target: IEnumerable<ITable>, diffContext: unknown): IEnumerable<MigrationOperation>;
114
+ Diff(source: ITable, target: ITable, diffContext: unknown): IEnumerable<MigrationOperation>;
115
+ Diff(source: IEnumerable<IColumn>, target: IEnumerable<IColumn>, diffContext: unknown): IEnumerable<MigrationOperation>;
116
+ Diff(source: IColumn, target: IColumn, diffContext: unknown): IEnumerable<MigrationOperation>;
117
+ Diff(source: IEnumerable<IUniqueConstraint>, target: IEnumerable<IUniqueConstraint>, diffContext: unknown): IEnumerable<MigrationOperation>;
118
+ Diff(source: IUniqueConstraint, target: IUniqueConstraint, diffContext: unknown): IEnumerable<MigrationOperation>;
119
+ Diff(source: IEnumerable<IForeignKeyConstraint>, target: IEnumerable<IForeignKeyConstraint>, diffContext: unknown): IEnumerable<MigrationOperation>;
120
+ Diff(source: IForeignKeyConstraint, target: IForeignKeyConstraint, diffContext: unknown): IEnumerable<MigrationOperation>;
121
+ Diff(source: IEnumerable<ITableIndex>, target: IEnumerable<ITableIndex>, diffContext: unknown): IEnumerable<MigrationOperation>;
122
+ Diff(source: ITableIndex, target: ITableIndex, diffContext: unknown): IEnumerable<MigrationOperation>;
123
+ Diff(source: IEnumerable<ICheckConstraint>, target: IEnumerable<ICheckConstraint>, diffContext: unknown): IEnumerable<MigrationOperation>;
124
+ Diff(source: ICheckConstraint, target: ICheckConstraint, diffContext: unknown): IEnumerable<MigrationOperation>;
125
+ Diff(source: IEnumerable<ISequence>, target: IEnumerable<ISequence>, diffContext: unknown): IEnumerable<MigrationOperation>;
126
+ Diff(source: ISequence, target: ISequence, diffContext: unknown): IEnumerable<MigrationOperation>;
127
+ DiffCollection<T>(sources: IEnumerable<T>, targets: IEnumerable<T>, diffContext: unknown, diff: Func<T, T, unknown, IEnumerable<MigrationOperation>>, add: Func<T, unknown, IEnumerable<MigrationOperation>>, remove: Func<T, unknown, IEnumerable<MigrationOperation>>, ...predicates: Func<T, T, unknown, System_Internal.Boolean>[]): IEnumerable<MigrationOperation>;
128
+ DiffData(source: IRelationalModel, target: IRelationalModel, diffContext: unknown): void;
129
+ GetDataOperations(source: IRelationalModel, target: IRelationalModel, diffContext: unknown): IEnumerable<MigrationOperation>;
130
+ GetDefaultValue(type: Type): unknown | undefined;
148
131
  GetDifferences(source: IRelationalModel, target: IRelationalModel): IReadOnlyList<MigrationOperation>;
132
+ GetSchemas(model: IRelationalModel): IEnumerable<System_Internal.String>;
149
133
  HasDifferences(source: IRelationalModel, target: IRelationalModel): boolean;
134
+ HasDifferences(source: IEnumerable<IAnnotation>, target: IEnumerable<IAnnotation>): boolean;
135
+ Remove(source: IRelationalModel, diffContext: unknown): IEnumerable<MigrationOperation>;
136
+ Remove(source: string, diffContext: unknown): IEnumerable<MigrationOperation>;
137
+ Remove(source: ITable, diffContext: unknown): IEnumerable<MigrationOperation>;
138
+ Remove(source: IColumn, diffContext: unknown): IEnumerable<MigrationOperation>;
139
+ Remove(source: IUniqueConstraint, diffContext: unknown): IEnumerable<MigrationOperation>;
140
+ Remove(source: IForeignKeyConstraint, diffContext: unknown): IEnumerable<MigrationOperation>;
141
+ Remove(source: ITableIndex, diffContext: unknown): IEnumerable<MigrationOperation>;
142
+ Remove(source: ICheckConstraint, diffContext: unknown): IEnumerable<MigrationOperation>;
143
+ Remove(source: ISequence, diffContext: unknown): IEnumerable<MigrationOperation>;
144
+ Sort(operations: IEnumerable<MigrationOperation>, diffContext: unknown): IReadOnlyList<MigrationOperation>;
145
+ TrackData(source: IRelationalModel, target: IRelationalModel, diffContext: unknown): void;
150
146
  }
151
147
 
152
148
 
@@ -164,21 +160,17 @@ export interface MigrationsModelDiffer$instance extends Microsoft_EntityFramewor
164
160
  export type MigrationsModelDiffer = MigrationsModelDiffer$instance & __MigrationsModelDiffer$views;
165
161
 
166
162
 
167
- export abstract class Migrator$protected {
168
- protected readonly MigrationTransactionIsolationLevel: Nullable<IsolationLevel>;
169
- protected GenerateDownSql(migration: Migration, previousMigration: Migration, options?: MigrationsSqlGenerationOptions): IReadOnlyList<MigrationCommand>;
170
- protected GenerateUpSql(migration: Migration, options?: MigrationsSqlGenerationOptions): IReadOnlyList<MigrationCommand>;
171
- protected PopulateMigrations(appliedMigrationEntries: IEnumerable<System_Internal.String>, targetMigration: string, parameters: MigratorData): void;
172
- protected VerifyMigrationSucceeded(targetMigration: string, state: MigrationExecutionState): boolean;
173
- protected VerifyMigrationSucceededAsync(targetMigration: string, state: MigrationExecutionState, cancellationToken: CancellationToken): Task<System_Internal.Boolean>;
174
- }
175
-
176
-
177
- export interface Migrator$instance extends Migrator$protected {
163
+ export interface Migrator$instance {
164
+ readonly MigrationTransactionIsolationLevel: Nullable<IsolationLevel>;
165
+ GenerateDownSql(migration: Migration, previousMigration: Migration, options?: MigrationsSqlGenerationOptions): IReadOnlyList<MigrationCommand>;
178
166
  GenerateScript(fromMigration?: string, toMigration?: string, options?: MigrationsSqlGenerationOptions): string;
167
+ GenerateUpSql(migration: Migration, options?: MigrationsSqlGenerationOptions): IReadOnlyList<MigrationCommand>;
179
168
  HasPendingModelChanges(): boolean;
180
169
  Migrate(targetMigration: string): void;
181
170
  MigrateAsync(targetMigration: string, cancellationToken?: CancellationToken): Task;
171
+ PopulateMigrations(appliedMigrationEntries: IEnumerable<System_Internal.String>, targetMigration: string, parameters: MigratorData): void;
172
+ VerifyMigrationSucceeded(targetMigration: string, state: MigrationExecutionState): boolean;
173
+ VerifyMigrationSucceededAsync(targetMigration: string, state: MigrationExecutionState, cancellationToken: CancellationToken): Task<System_Internal.Boolean>;
182
174
  }
183
175
 
184
176