Migrating One-to-Many to Many-to-Many with the new EF Core 5.0
问题 I have an ASP.NET Core 5 project (migrated from ASP.NET Core 3.1). The project uses EF Core. EF Core 5 has built-in support for Many-to-Many. The main reason I first migrated from 3.1 to 5.0. Now my project has a One-to-Many relationship, which I want to convert to a Many-to-Many. Is such a relationship migration possible? Current code: public class File { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Key] public int Id { get; set; } [DatabaseGenerated(DatabaseGeneratedOption