Entity Framework Feature Suggestions

Welcome! You can use this site to tell the Entity Framework team what features you want to see in future versions.

Remember that this site is only for feature suggestions and ideas!

If you have technical questions or need help with EF try StackOverflow or visit our forums.

If you want to report a bug you found in EF use the Entity Framework project page on CodePlex.

If you want to find more information about the Entity Framework go to our MSDN site.

Entity Framework Feature Suggestions

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 vote and comment on it.

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

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

  1. Code First better attributes

    * Decimal Scale/Precision
    [Column(DecimalScale=18, DecimalPrecision=2)]

    * Nullable indication (For string is essential):
    [Column(NotNull = true)]

    * All in one:
    [Column("TestName", NotNull = false, MaxLength = 250, MinLength = 3, Default = ""])
    public String Name { get; set; }

    [Column(NotNull = true, MaxLength = 0, Default = 0])
    public int Count { get; set; }

    10 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  ·  Flag idea as inappropriate…  ·  Admin →
    • Option to use Inner Join SQL when Eager Loading (AKA IncludeRequired method)

      When trying to load related entities using the "Include" eager loading feature of EF, it always generates SQL that uses an LEFT OUTER JOIN e.g.

      from m in Customer.Includes("Orders")

      will always generate the SQL:

      SELECT ......
      FROM Customers
      LEFT OUTER JOIN Orders....

      This is not always desirable, especially when you only want to retrieve Customers that have at least one or more related Orders. By forcing the generated SQL to always use LEFT OUTER JOIN, it's going to load all Customers regardless of whether they have related Orders or not. This can become extremely inefficient, especially when there are lots…

      9 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 →
      • Entity Designer: custom metadata editor

        I would like to add my custom metadata using Entity Designer and then use it within T4 templates. To achive it with current version I must write my own extension for Visual Studio - it is not convenient.

        9 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  ·  Flag idea as inappropriate…  ·  Admin →
        • Add polymorphic associations support

          Add support for polymorphic associations like <any> and <many-to-any> in NHibernate.

          9 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…)
            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
          • Clear, Complete, and Accurate Documentation

            Break the mold! Provide clear concise documentation that describes the API, the intended use for each API, the purpose and use (with examples of the arguments to each method), and explanatory samples and snippets that are both complete and clearly show the intened information.

            9 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…)
              0 comments  ·  Flag idea as inappropriate…  ·  Admin →
            • Mapping n to n relation in a table with discriminator like TPH

              The most interesting side effect of TPH is that the DB need less tables and the overview is much better. Another interesting way to reduce the number of tables in a DB is to map the n to n relations in one table with a discriminator like the TPH.
              The xsd schema allow already to add a condition to the associated set mapping (n to n) but it's not supported from EF.
              This forum topic describe the problem and how it could be solved.
              http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/7144757d-c124-4932-b2bf-d0ab845597fd

              9 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…)
                0 comments  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
              • Allow only some CUD operations to map to stored procedures

                At present, mapping stored procedures is an all or nothing proposition. Either you map each of the Insert, Update and Delete procedures or none at all. It would be great to utilize the generated functionality as is but still have the option to override just one of the three.

                9 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…)
                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • Update model from database should update complex types returned by stored procedures

                  When using option 'Update model from databes' VS should update complex types returned by SP - now every SP have to be updated manually

                  9 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 →
                  • Support for generic complex types

                    You should support for using generic complex types. Consider scenerio where I would like to create Rage<T> type. Now I must create RangeOfInt32, RangeOfInt64, RangeOfDecimal, etc. It will be also great if that class could be defined outside of the model.

                    9 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…)
                      0 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                    • Improve Database First Support

                      Code First is no match for real life situations and also Proxies create lot of runtime problems.

                      We use Dictionary<Type,object> to store Lambda Expressions that are designed to act as Filters for one type. Here is the problem, at runtime code first entity type is a dynamic type leading to following problems.

                      1. Dynamic Type implementation is hidden.
                      2. It does not support INotifyPropertyChanged
                      3. It does not allow us to inspect/validate property with partial methods which we were able to do with Database First (EDMX) Model.
                      4. CreateSourceQuery is hidden, sometimes we want to only execute Any or inspect…

                      9 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 →
                      • 8 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…)
                          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                        • let me save expensive intermediate LINQ results in temp table

                          LINQ-to-Entities should offer an anaogous operator to AsEnumerable() but instead of materializing results on the client, it would materiailze results on the server (e.g. a temp table for SQL Server), allowing subsequent operators to re-use intermediate results without risking additional server recomputation or requiring a round-trip from client to server.

                          The underlying requirement is to make it easier to build and maintain performant LINQ queries that use millions of rows, many complex joins, I/O intensive calculations like running totals or self-joins, or all of the above.

                          For these kinds of queries in T-SQL, a good way to get predictable performance…

                          8 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…)
                            0 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                          • Allow "normally"/correctly formatted connection strings

                            Connection string sections now needs two connection strings: one for EF to use, and one for all other standard .Net Framework APIs utilising the same database.

                            This is kinda bizarre, violating DRY, KISS etc.

                            The requested change:
                            Have a config section for EF.
                            Have all non-standard connection string settings set here.
                            Have it reference the regular connection string section to get the standard settings for the database.
                            Combine the settings within the framework in order to make a connection.

                            Simple, no?

                            8 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 Pessimistic Concurrency

                              Allow a Select with UpdLock which locks all returned entities in the Database. This is a basic requirement to program for example a ticket sales portal with entity framework! So far it's not possible and I still have to stick to NHibernate :(

                              8 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…)
                                0 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                              • Support ignoring columns with database provided default value

                                If a database defines a default for a column then the column does not need to be mapped to a conceptual schema property anymore. The column is optional (like nullable columns) and the model should validate even if no mapping for the column is defined.

                                8 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 →
                                • Deprecate Timestamp annotation in favor of RowVersion

                                  Considering that "timestamp" has been deprecated in SQL Server for some time and is a synonym for the more precise denomination "rowversion", introduce the RowVersion data annotation in EF as an alternative to Timestamp and mark the current Timestamp annotation as deprecated.
                                  http://msdn.microsoft.com/en-us/library/ms182776.aspx

                                  8 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  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Navigation properties in composite ids without need for the corresponding scaler property

                                    If you have a class like

                                    public class CustomerAddress
                                    {
                                    public virtual Customer Customer { get; set; }
                                    public virtual Address Address { get; set; }
                                    public virtual string AddressType { get; set; }
                                    public virtual DateTime ModifiedDate { get; set; }
                                    }

                                    you should be able to create a composite id like this

                                    HasKey(a => new { a.Customer, a.Address });

                                    without defining CustomerId and AddressId properties

                                    8 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…)
                                      0 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Self tracking

                                      Allow using self tracking in case of "ApplyChanges" to object holding different references (same entitiy loaded from different context or pass using WCF) but actuality they are the same entity (have the same EntityKey) then the entities will be identify by the entity key and not the specific reference.

                                      8 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…)
                                        0 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                      • WF / EF integration

                                        It would be nice if you could somehow link the WF designer with the EF designer so that entities can more easily be integrated with workflows.

                                        A form designer link would also be beneficial. Define the entities, start with a form generated is a similar way as is done today with ASP.Net Dynamic data but have the ability to make changes to the templates visually. Then allow us link everything together with workflow.

                                        Have integrated templates for deployment as WPF, Silverlight, ASP.Net and SharePoint 2012 deployments.

                                        8 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…)
                                          0 comments  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Allow commit only selected changes

                                          There are cases, when we would like to commit only selected changes from changeset. Let's say in complex hierachy ef is not able to resolve all relations and set correct id's, so we would save first parent items, then child items with correct parent id's.

                                          7 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…)
                                            0 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                          1 2 6 8 10 16 17
                                          • Don't see your idea?

                                          Entity Framework Feature Suggestions

                                          Feedback and Knowledge Base