EF5:手动表格映射

问题描述:

如何使用Code First方法在Entity Framework 5中进行手动表映射?

How to do manual table mapping in Entity Framework 5 using the Code First approach?

表映射的意思是将数据库中的表名关联到

What I mean by table mapping is to associate a table name from the database to an entity class with a different name.

这很简单。

[Table("Foo")]
public class Bar {
      // properties
}