VS2010 的数据库项目的会建一个 <ProjectName>.dbmdl 文件,这个文件,在每次数据库项目被打开时候,都会被更新,如果这个文件不存在,则会自动建立一个。这个文件不应该被源代码控制,否则你会被他搞死,每次打开项目,都会改写这个文件。
<ProjectName>.dbmdl – This file is the cached project model. It should not be source controlled. You always need read/write access to this file while the project is open in the IDE. The cache should be rebuilt for each developer on the team.
参考资料:
Come visit/revisit The Beer House! (Continuous Integration)
http://blogs.msdn.com/bahill/archive/2009/07/31/come-visit-revisit-the-beer-house-continuous-integration.aspx