Share via


EF Fixes in Visual Studio 2012 Update 1

Visual Studio 2012 Update 1 is now available for download. This update includes three bug fixes for the Entity Framework Designer for Visual Studio 2012.

  • Nesting an .edmx file under a project folder would stop the code from being automatically regenerated when you saved changes to the edmx file. This was the highest voted issue on our CodePlex site and is fixed in VS2012 Update 1.
  • The changes we made to code generation for models created in the EF Designer in Visual Studio 2012 were causing significantly more virtual memory to be used when working with an EF model in Visual Studio. VS2012 Update 1 includes a fix that reduces virtual memory usage below what it was in Visual Studio 2010. More details about this issue are available on our CodePlex site.
  • The EF Designer in VS2012 introduced a new feature that updated facets of entity properties (such as length, precision, etc.) based on the facets of the corresponding database column. This is done to propagate changes the user made to the database to the entities. However, with some database providers, such as Oracle, the discrepancy is intentional and facet propagation was producing invalid models. VS2012 Update 1 disables facet propagation for all providers except SQL Server. More details about this issue are available on our CodePlex site.

Comments

  • Anonymous
    November 27, 2012
    I am experiencing a bug that continues at Update 1. When I update the Model from Database, it doesn´t show the lines from new relationships. I need to close and open it again. The same when I change the entity colors, I need to re-open the designer to see the new color

  • Anonymous
    November 28, 2012
    @Felipe Fujiy - We haven't seen anyone else report this issue. I think the first step would be to try re-installing. If that doesn't fix the issue then it would be good to get some information on your setup to see if we can isolate what's causing the issue. Also, do you have the 'June 2011 CTP' installed (or previously installed)... we've seen this cause a lot of random issues.

  • Anonymous
    December 01, 2012
    EF Power Tool beat2 参数错误HRESULT:0x80070057 (E_INVALIDARG         with     code frist   how to 解决?  环境: vs2012 sp1 +   ef5

  • Anonymous
    December 01, 2012
    Is there plans to port the entity framework generation power pack in VS 2012? I'm not interested in code first at all and right now this is a big regression not being able to "update" a db from visual studio without droping everything or doing it by hand.

  • Anonymous
    December 03, 2012
    i want to translate this post into chinese,however, I don't know what is facet propagation,could you help me explain it ,thank you

  • Anonymous
    December 04, 2012
    @mingceng: Facet propagation is a new feature introduced in VS2012. When updating your model from database it synchronizes facets on your model to be the same as in the database (or to be more correct in the S-Space model that describes the database/store). For instance - if you change a column in your database from non-null to null the nullability of the corresponding property in your model will also change. This did not work for some providers (most notably Oracle) which may depend on facets in S-Space (i.e. store) being different from facets C-Space (i.e. the model you see in the designer). The change introduced in the update was to change the default behavior for non-Sql Server databases to not synchronize facets.

  • Anonymous
    December 04, 2012
    @Ronan Thibaudau - RT Information Technology - The database generation power pack was a side project of one of the developers who used to work on the EF Designer. I have contacted him and asked him to consider updating it to work with VS2012. For a more long term and supported solution we are planning to enable a similar experience to 'Code First Migrations' for the EF Designer.

  • Anonymous
    February 19, 2013
    The designer does not allow mapping a property from an abstract base class to a DB column. You can manually edit the .edmx file to do it and it works but as soon as you refresh the model from the DB, that change is lost and you have to do the manual edit again.

  • Anonymous
    February 20, 2013
    @Daniel Gerlag - Can you provide details of the limitation you are hitting in a new issue on our CodePlex site -  entityframework.codeplex.com/.../Create . The more information you can include (code, screen shots, etc.), the easier it will be for us to prioritize the issue.

  • Anonymous
    September 15, 2014
    I am getting a problem when I m making changes in my database from SQL Server 2008, my data in visual studio "ADO.NET Entity Framework Data Model" is not updating. Still m getting previous Data, its not updating. Some one can help to resolve this ??

  • Anonymous
    September 17, 2014
    @Umair Janwani - Best to open a question on StackOverflow.com with the entity-framework tag and we can work thru the issue you are seeing.