You can tell EF to map to the table Towar by overriding the OnModelCreating method in your DBContext class with fluent API like this:public class EFDbContext : DbContext{ protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity<Towar>().ToTable("Towar"); }}现在,EF将查找Towar表而不是Towars.如果您没有创建这些表,那么您将遇到其他问题.Now EF will look for Towar table instead of Towars. If you do not have these tables created, there is some other problem you are having. 这篇关于实体框架将s添加到了我的.dbo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-21 16:38