mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.4 KiB
1.4 KiB
ABP Framework v4.x to v5.0 Migration Guide
IdentityUser
We added an IsActive(bool)
property to IdentityUser
to control whether it is available. Please set it to true
of the old user after the upgrade.
For EF Core you can change defaultValue
to true
in the migration class:
public partial class AddIsActiveToIdentityUser : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsActive",
table: "AbpUsers",
type: "bit",
nullable: false,
defaultValue: true); // Default is false.
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsActive",
table: "AbpUsers");
}
}
MongoDB
ABP Framework will serialize the datetime based on AbpClockOptions start from 5.0, before DateTime
values in MongoDB are always saved as UTC.
You can disable this behavior by configure AbpMongoDbOptions
.
services.Configure<AbpMongoDbOptions>(x => x.UseAbpClockHandleDateTime = false);
Angular UI
See the Angular UI Migration Guide.