Entity Framework Core Feature Suggestions

Welcome! Use this web site to submit ideas and vote for what features you want to see in future versions of Entity Framework Core.

Our team will only fix bugs, implement small improvements and accept community contributions in the EF6 codebase. Larger feature work and innovation will happen only in the EF Core codebase. If you have ideas for improving EF6, we recommend you submit them on the EF6 GitHub site listed below.

Please also consider these other options before submitting anything to this site:

  • If you want to learn how to use our products, visit our documentation pages.
  • If you want to report bugs, make contributions, or learn about our product roadmaps, visit our EF Core or EF6 project pages on GitHub.
  • If you have technical questions or need help, try StackOverflow’s EF Core or EF6 tags, or visit our MSDN forums. Note that roadmap questions, bug reports, feature requests or ideas are not appropriate for StackOverflow. Visit StackOverflow’s help center for guidance on appropriate usage.

How can we improve 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. Custom type mapping and type conversion support

    Currently the only conversion available in EF Core libraries 4.5 and EF 5.0 are enums mapped to integers but that is only tip of the iceberg. There is whole big feature behind - simple type mapping or conversions defined directly in mapping.

    For example what if my database contains char column with Y, N values and I want to map it to bool property directly without any additional stuff doing the conversion inside my entity? Or more complex example - what if my column contains value like en-us and I want to map it to instance of CultureInfo? There are…

    3,366 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…)
      73 comments  ·  mapping & modeling  ·  Flag idea as inappropriate…  ·  Admin →
    • Second Level Cache

      Entity Framework currently support only first level cache (cache for entities). I would like to see a second level cahce implemented in the next version (queries cache).

      2,157 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…)
        19 comments  ·  Flag idea as inappropriate…  ·  Admin →
      • Allow filtering for Include extension method

        There is no ablity to filter included objects in ObjectQuery<TSource>.Include method.
        Allow filter predicate in Include method in Entity Framework.
        I suppose this method of ObjectQuery<TSource> may have following signature:

        /// <summary>
        /// Includes related objects which meet to predicate
        /// </summary>
        /// <typeparam name="TRelation">Type of related object on another end of navigation property</typeparam>
        /// <param name="relationSelector">Expression that returns set of related objects</param>
        /// <param name="predicate">Predicate that has to be met</param>
        /// <returns>Query</returns>
        public System.Data.Objects.ObjectQuery<TSource> Include<TRelation>(Expression<Func<TSource, IEnumerable<TRelation>>> relationSelector, Expression<Func<TRelation, bool>> predicate);

        1,965 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…)
          24 comments  ·  Flag idea as inappropriate…  ·  Admin →
        • Mapping single model to multiple databases

          Like to be able to build a domain model over data in multiple databases. With out having to manage database objects - linked servers, views etc.

          1,826 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…)
            31 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
          • Table-Valued Parameters support

            TVP support for stored procedures

            1,404 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…)
              33 comments  ·  Flag idea as inappropriate…  ·  Admin →
            • IndexAttribute

              Create a IndexAttribute for annotating entities with index hints for the Database.
              For Example

              [Index(Direction.Ascending)]
              string MyProptery{Get;set;}

              1,187 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…)
                14 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
              • Support interfaces as entity and complex types

                It's unfortunate not to be able to mark interfaces for EF mapping (code first). This will allow to really abstract the implementation. Allows a unique representation of the data in the context of RIA Services (if Ria Services allows also for interface 'mapping'). This won't be very hard to implement since EF is happy when it subclasses... For the benefits: imagine you have only interfaces to declare your model. On the server side, you use EF to get your interfaces 'filled' from DB. on the client side you get those same interfaces filled by RIA services... You can reuse any…

                816 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…)
                  22 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • Eager loading for properties of derived classes

                  In entity framework there should be a way to eager load (include) navigation properties of a derived class.

                  When in an data model for entity framework has a navigation property it is not posseble to eager load that navigation property besides when using OfType<> or when eager loading the derived type itself by a navigation property.
                  This could be done by using a special syntax of the include path.
                  Since a property of the base class can not have the same name as the derived class, it would also be possible to navigate to the derived class by its name.

                  796 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…)
                    21 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • XML data type support

                    EF full support of XML field

                    754 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…)
                      26 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                    • Code First support for Table-Valued Functions

                      The EF team has marked the previous TVF feature suggestion as Completed saying TVF support will be included with .NET 4.5. It had 226 votes at the time. However, this excludes Code First support. Vote for this suggestion to specifically add Code First support for TVFs.

                      651 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 →
                      • Lazy loading of non-navigation properties

                        At time we may require to lazy load at column level. For e.g. if we have a LOB column which could be huge, we may not want to load that upfront when the table is lazy loaded. Agreed that we can workaroudn this problem, but a straight forward way would be good to have

                        500 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  ·  Flag idea as inappropriate…  ·  Admin →
                        • Support for hierachical queries and HierarchyID

                          One of the things that most simple business applications require is heirarchy. Whether it be a tree for data selection or a threaded comment set, Heirarchy is horrible to implement in EF and LINQ - I'd like to see methods that support it better.

                          464 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  ·  Flag idea as inappropriate…  ·  Admin →
                          • Merge method: automatic synchronization of relationships on a disconnected entity

                            A problem encountered when an entity is instantiated using non-ef infrastructure, e.g. ASP.NET MVC model binder mechanism. Such entity is pure poco class without proxy. Updates of relationship of the entity can be only synchronized using manual approach according to MSDN(and proven by experience)
                            http://msdn.microsoft.com/en-us/library/ee373856.aspx "If you are working with disconnected objects you must manually manage the synchronization."
                            Manual synchronization is really painful approach and really not a good ORM style solution.
                            The problem even becomes critical for me in decision to migrate my application to nhibernate due to the fact that nhibernate can do such synchronization without problems http://www.codinginstinct.com/2009/11/nhibernate-feature-saveorupdatecopy.html

                            456 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 →
                            • Ability to specify query and table hints in SQL Server

                              Table lock, update lock ( WITH(UPDLOCK) / FOR UPDATE ).
                              LockMode something like NHibernate.

                              Also should support controlling parameter sniffing

                              http://stackoverflow.com/q/9890699/85196

                              436 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…)
                                12 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                              • Support for spatial types and spatial query

                                Support for spatial types and spatial query

                                405 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…)
                                  12 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                • Stored procedure mapping in EF Core

                                  EF6 supports mapping CUD operation to stored procedures in both Code First and EDMX based development.

                                  EF Core does not have this functionality yet.

                                  395 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  ·  mapping & modeling  ·  Flag idea as inappropriate…  ·  Admin →
                                  • EF Core Migrations Column ordering

                                    Migrations on EF Core should do Scaffolding of the fields of entity like the order of the entity (and NOT alphabetical)

                                    As this req:
                                    https://github.com/aspnet/EntityFramework/issues/2272
                                    and
                                    https://github.com/aspnet/Scaffolding/issues/398

                                    357 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  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Simple Static Delete and Update Methods

                                      Allow for simple delete and update operations that do not require multiple round trips to the database. They could be static methods on each Entity. For example:
                                      Cars.Delete(int ID)
                                      or
                                      Cars.Delete(Guid ID)

                                      This would delete a car record with the associated ID if it exists. The code generation template should be smart enough to create the static methods using the correct data type.

                                      For updates you would pass in the ID and a set of named parameters for the fields that need to be updated:

                                      Car.Update(10, {Status="Sold", ModifiedDate=DateTime.Now}

                                      I think people are doing this now using functions or executing SQL

                                      315 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…)
                                        16 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Decouple entity creation in EF and support entities without default constructors and publically settable properties

                                        EF should decouple the implementation of the entity objects from the mapping functionalities. The EF team could provide the current entity creation as a default variant which can be attached to the mapper. The developer has the option to provide it's own data transfer object layer. Therefore we need to abstract the entities through interface usage an a generic naming schema (dot notation of an object model like Person.Name). So the EF would be much more flexible to use.

                                        Note by Diego Vega: I am merging this idea with a few other ideas that are approximately equivalent but extend in…

                                        280 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…)
                                          11 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Offer eager loading strategies

                                          I supposed that eager loading currently supports only single fixed strategy and except some rare cases this strategy always joins all eager loaded data to one huge record set - at least that is what I saw so far.

                                          I described the impact of such eager loading on Stack Overflow: http://stackoverflow.com/q/5521749/413501

                                          It would be nice to have some control over the way how eager loading is executed with possibility to define if eager loaded data should be joined into single result set with the main data or if they should be executed in separate query.

                                          Something like:

                                          var data =…

                                          274 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 →
                                          ← Previous 1 3 4 5 15 16
                                          • Don't see your idea?

                                          Entity Framework Core Feature Suggestions

                                          Feedback and Knowledge Base