2013年7月1日 星期一

Entity Framework–DB First (DbContext Name)

By default, the name is XXXEntities, suggest to change to XXXContext, because it represents followings:

1. The Connection String in Web.config

2. The Entity Container Name

3. The Class Name of DbContext

image

 

The Model Namespace, not that important

image

 

Above 2 names will appear in the property window

image

 

This shows the name of DbContext class defined before

image

沒有留言:

張貼留言