632374118

Results 3 comments of 632374118

Thank you. I have other question: Assuming an entity has an ID, Code, and Name that uses soft deletion functionality. I set the code as a unique index. After I...

builder.Entity(b => { b.HasIndex(x => new { x.Id, x.TenantId }).IsUnique(); b.HasIndex(x => new { x.Code, x.TenantId }).IsUnique(); }); migrationBuilder.CreateIndex( name: "IX_AppDevices_Code_TenantId", table: "AppDevices", columns: new[] { "Code", "TenantId" }, unique:...

I understand now. If a field is of a nullable value type and an index is set, a filter will be automatically added during migration