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. 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?

(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. 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).

    964 votes
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)

      We’ll send you updates on this idea

      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);

      858 votes
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)

        We’ll send you updates on this idea

        25 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.

        817 votes
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)

          We’ll send you updates on this idea

          31 comments  ·  Flag idea as inappropriate…  ·  Admin →
        • Table-Valued Parameters support

          TVP support for stored procedures

          609 votes
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)

            We’ll send you updates on this idea

            34 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;}

            484 votes
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)

              We’ll send you updates on this idea

              15 comments  ·  Flag idea as inappropriate…  ·  Admin →
            • XML data type support

              EF full support of XML field

              369 votes
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)

                We’ll send you updates on this idea

                26 comments  ·  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…

                322 votes
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)

                  We’ll send you updates on this idea

                  22 comments  ·  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.

                  269 votes
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)

                    We’ll send you updates on this idea

                    5 comments  ·  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

                    266 votes
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)

                      We’ll send you updates on this idea

                      4 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.

                      207 votes
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

                        10 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.

                        197 votes
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)

                          We’ll send you updates on this idea

                          6 comments  ·  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

                          192 votes
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)

                            We’ll send you updates on this idea

                            12 comments  ·  Flag idea as inappropriate…  ·  Admin →
                          • Support for spatial types and spatial query

                            Support for spatial types and spatial query

                            181 votes
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)

                              We’ll send you updates on this idea

                              12 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

                              170 votes
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)

                                We’ll send you updates on this idea

                                3 comments  ·  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

                                152 votes
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)

                                  We’ll send you updates on this idea

                                  16 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                • Flexible stored procedures support: allow mapping entities with complex types

                                  So far a stored procedure cannot be mapped to an entity with complex properties. Well it can be mapped, but the execution fails at runtime. It would be great if we could map stored procedure columns to entity properties.

                                  150 votes
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)

                                    We’ll send you updates on this idea

                                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Table-Valued Functions

                                    Allow table valued functions. This will enable many other scenarios such as full text search or advanced sql querying where LINQ does not support certain TSQL constructs. It can be used as a fallback or last resort whilst still allowing results to be further refined in LINQ.

                                    TVFs are extremely powerful when used in this way with LINQ. A view or scalar function is not applicable in all scenarios as you may need to either provide a parameter or return a set of rows rather than a scalar. TVFs support these scenarios.

                                    139 votes
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)

                                      We’ll send you updates on this idea

                                      3 comments  ·  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…

                                      137 votes
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)

                                        We’ll send you updates on this idea

                                        11 comments  ·  Flag idea as inappropriate…  ·  Admin →

                                        This feature is at least partially implemented in EF Core 2.1. There is no custom binding but many additional patterns are now supported by convention, including injecting the property values in the constructor, injecting instances of services also in the constructor and on properties.

                                        Direct mapping to fields was already supported in 1.1.

                                      • Full Text Search

                                        Provide Full-Text Search capabilities similar to Lucene.Net-NHibernate

                                        128 votes
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)

                                          We’ll send you updates on this idea

                                          4 comments  ·  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 =…

                                          117 votes
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            Signed in as (Sign out)

                                            We’ll send you updates on this idea

                                            4 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 12 13
                                          • Don't see your idea?

                                          Entity Framework Core Feature Suggestions

                                          Feedback and Knowledge Base