Entity Framework Feature Suggestions

Welcome! You can use this site to tell the EF team what features you want to see in future versions of our products.

Note that moving forward our team will be only fixing bugs, implementing small improvements, and accepting community contributions in the EF6 codebase. Larger feature work and innovation will happen in the EF Core codebase.

Please consider other options besides this site!

  • If you have technical questions or need help, try StackOverflow (EF6 and EF Core) or visit our forums.
  • If you want to learn how to use our products, visit our documentation pages: EF6 and EF Core.
  • If you want to report bugs or make contributions, visit our project pages on GitHub: EF6 and EF Core.

How can we improve Entity Framework or Entity Framework Core?

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. Allow using SQL Server 2012 sequence for generating primary key

    I would like support for SQL Server 2012 sequences to generate PK instead of identity. Coming from Oracle this is very important for me. See http://lennilobel.wordpress.com/2011/05/23/using-sequences-in-sql-server-denali/ for adding the DEFAULT consraint with NEXT VALUE FOR from a sequence.

    112 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      3 comments  ·  Flag idea as inappropriate…  ·  Admin →
    • Flexible stored procedure support: return values and output parameters

      Support Stored Procedure Return Values, output parameters of any type and procedures that don't return a result set, like an update statement.

      110 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        3 comments  ·  Flag idea as inappropriate…  ·  Admin →
      • Support for ON DELETE SET NULL

        In addition to supporting cascading deletes on optional relationships, the Fluent API should also support setting the foreign key and/or child object to null when the parent is deleted.

        104 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          7 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
        • Richer collection support, including ordered collections and dictionaries of value types

          It would be very nice to be able to support properties which are collections of value types. Just to have an array of doubles I shouldn't need to map each value to a class. NHibernate has this feature. E.g.
          class Benchmark
          {
          public long Id {get; set;}
          public string Name {get; set;}
          public IDictionary<DateTime, double> Returns {get; set;}
          public int[] Vector {get; set;} // preserve the order too
          }

          99 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            6 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
          • Detach entire object graphs

            I would like the option to detach an entire loaded object graph easily using the DbContext API. And to attach the graph again with several option for choosing if existing data should be overwritten or not.

            98 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              4 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
            • Support for OPTION (RECOMPILE) on generated queries

              There are many scenarios where parameter sniffing in SQL server creates serious performance problems. This is very problematic with many EF generated queries, since there is no control that allows you to tell the database optimizer not to use the parameter values or cache a plan. A simple mechanism to hint OPTION (RECOMPILE) on the generated queries would solve most of these issues.

              A more sophisticated solution that would allow the generated sql to leverage (Optimize for Unknown) would also be useful.

              Parameter sniffing and the related performance problems are a very prevalent issue with SQL server and if you…

              97 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                1 comment  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
              • Designer support for editing store model

                The EF designer only allows you to edit the model, not the store. This means the EF designer only contains 50% of the functionality required to actually do model-first development. Without being able to add tables, views, stored procedures, and constraints there is nothing to map your entity properties to.

                The only alternative way is to "Update model from database...", but it forces you to create entities for the tables you import, when all you really want is for you tables to be listed in your store and available to be mapped to. Furthermore, if a table in the DB…

                93 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  3 comments  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                • 90 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • Allow Complex Types to Reference Entities

                    While not quite an edge case, it is possible in our designs to have complex types refer to entities, but EF does not support this case whereas NHibernate does. Since a complex type maps back to the table of a containing entity there does not appear to be a technical reason why this could not be added. More rationale can be found in this post: http://stackoverflow.com/questions/7012319

                    82 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • WAQS

                      Adopt the WAQS framework into EF source code

                      WAQS framework is a layer of abstraction over the Entity Framework

                      WAQS is addressing many of the painful scenarios under EF, with a great design and productivity.

                      http://www.dailymotion.com/video/xuc1jb_waqs-application-scaffolding_tech

                      82 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        3 comments  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                      • Allow dynamically adding properties to entities and complex types

                        want to use the entity framework. However I also have the requirement of allowing my users to define custom fields in our system. I would like to still use the entity framework and not use a a partial class with a hash table property.

                        76 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          2 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                        • Designer support for data annotations

                          As I found in CSDL format description there is a possibility to extend model by Annotations.
                          I know annotations with unique identities for every metadata entity (and property) can solve renaming problem without drop and recreating entities (or properties).
                          For example: in custom ddl provider (wanted ability to write it) could write this identities in extended properties (Sql Server) or in comments table (Oracle). Then, during upgrade it will be easy to found things that was renamed, deleted or added. Of course if providers upgrade method will have both models in signature.

                          74 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            9 comments  ·  Flag idea as inappropriate…  ·  Admin →
                          • ObjectContext DiscardChanges

                            We need an easy way to give the user the "Cancel" functionallity when he make changes to entities data but he does not want to save changes pressing Cancel button. I think adding DiscardChanges to ObjectContext is the solution, going back to its initial state and dissapearing added entities (even child entities) and returning modified or deleted entities to their original state

                            74 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              3 comments  ·  Flag idea as inappropriate…  ·  Admin →
                            • Enhance Enums by creating a Lookup Table with the Enum items

                              Now that EF 5 supports enums, please (optionally) create Lookup Tables in the database with the enum items or store them in the metadata.

                              This enables Lightswitch and other apps to reconstruct the enums/use the Lookup Tables.

                              73 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                7 comments  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                              • Update delete and insert tables directly using expressions and predicates (aka LINQ-like DML, aka set-based updates)

                                Allow for direct updates to the database using expressions.

                                Here is an example, but it only works with constants.

                                A real solution needs to be able to evaluate expressions, which could translate into nested SQL queries.

                                http://geeks.ms/blogs/unai/archive/2008/07/17/multiple-entity-updates-with-entity-framework-ef-fetch-updates.aspx

                                72 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  5 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                • Support FileStream and FileTable

                                  please add SQL Server 2012 features to new release of entity framework and code first that support filestream and filetable

                                  69 votes
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    1 comment  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Reverse engineering should generate XML documentation from SQL description fields

                                    When generating from database, the EDMX designer should generate XML Documentation (Summary field) from the SQL Description field of each table/column etc.

                                    68 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      10 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                    • API for checking database schema correctness

                                      I would like some API for checking if database schema is correct for edmx storage model.
                                      It could be something like

                                      List<string> errors = new List<string>();
                                      bool isCorrect = context.ValidateDbSchema(errors);

                                      68 votes
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Ability to map any serializable object to XML or binary columns

                                        For example a database table could have a [Settings] column of type xml. And a mapped entity type could have a property [Settings] of some serializable type. Then you will be able to read and write data into and from this [Settings] column with EF. Like this:

                                        var user = db.Users.First(x => x.ID == 1);
                                        if (user.Settings == null)
                                        {
                                        user = new Settings();
                                        }
                                        user.Settings.ProductsPerPage = 20;
                                        db.SaveChanges();

                                        66 votes
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          3 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Generate repositories and units of work

                                          I'd like to see a well designed EF project template that made use of the Repository pattern for abstracting the data access technology. This should showcase best practices for using Code-First and POCO entities, UnitOfWork abstractions, solutions for querying entities that span multiple repositories, etc. This information is pretty hard to come by for EF but available in abundance for other ORMs.

                                          65 votes
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            1 comment  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          Entity Framework Feature Suggestions

                                          Feedback and Knowledge Base