How to: Update an .edmx File when the Database Changes
2016-09-23 10:44
281 查看
https://msdn.microsoft.com/en-us/library/cc716697.aspx
In the Model Browser, right-click the .edmx file and select Update Model from Database.
The Update Model Wizard starts. If there is no database connection specified, the Choose Your Database Connection dialog box appears. Otherwise, the Choose Your Database Objects dialog box appears.
注意:
更新的时候,无法获取修改之后的字段类型。
变通的方法,就是删除掉,那个字段,然后重新Update
In the Model Browser, right-click the .edmx file and select Update Model from Database.
The Update Model Wizard starts. If there is no database connection specified, the Choose Your Database Connection dialog box appears. Otherwise, the Choose Your Database Objects dialog box appears.
注意:
更新的时候,无法获取修改之后的字段类型。
变通的方法,就是删除掉,那个字段,然后重新Update
相关文章推荐
- update-database时出现Cannot attach the file
- HOW TO: Find the Problem Exception Stack When You Receive an UnhandledExceptionFilter Call in the St
- How to: Configure an Azure SQL Database firewall using the Azure Portal
- To create an .edmx file from an existing database
- HOW TO: Find the Problem Exception Stack When You Receive an UnhandledExceptionFilter Call in the St
- “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?
- Updating the flat file of an iSCSI target in AIX
- eclipse出现错误An error has occurred. See the log file
- vs2005下出现“Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive”的解决方法
- An extender can't be in a different UpdatePanel than the control it extends
- how to solve the problem when you have chmod the directory to 777 but the apache still can not write file
- The source file is different from when the module was built.
- HOW TO: Update a Database from a DataSet Object Us
- Previewing an image before uploading it using the FileReference class in Flash Player 10
- Inside Windows:An In-Depth Look into the Win32 Portable Executable File Format
- Setting an effect when the items in a data provider change on a List control in Flex
- "Failed to update database "c:\inetpub\wwwroot\WebSite1\App_Data\ASPNETDB.MDF" because the database is read-only."的解决办法
- 关于CommunityServer2.1附件过大报错,即ASP.NET2.0中附件设置问题"Cannot Upload Large Files When You Use the HtmlInputFile Server Control"
- Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive
- Do not include the "@" character when supplying stored procedure parameter names to a SQL Server database