Class MigrationOptions
Defines migration options.
public record MigrationOptions : IEquatable<MigrationOptions>
- Inheritance
-
MigrationOptions
- Implements
- Inherited Members
Constructors
MigrationOptions(bool, bool, bool)
Defines migration options.
public MigrationOptions(bool AllowDataLoss = false, bool UpdateDatabase = true, bool Force = false)
Parameters
AllowDataLoss
booltrue
to allow data loss; otherwise,false
.UpdateDatabase
booltrue
Existing database will be migrated. If not exists, then it will be created. Otherwise,false
Existing database will not be migrated. If not exists, then it will be created.Force
booltrue
to force migration even if SchemaVersion has not changed; otherwise,false
.
Properties
AllowDataLoss
true
to allow data loss; otherwise, false
.
public bool AllowDataLoss { get; init; }
Property Value
Force
true
to force migration even if SchemaVersion has not changed; otherwise, false
.
public bool Force { get; init; }
Property Value
UpdateDatabase
true
Existing database will be migrated. If not exists, then it will be created. Otherwise, false
Existing database will not be migrated. If not exists, then it will be created.
public bool UpdateDatabase { get; init; }