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

    1,355 votes
    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)

      We’ll send you updates on this idea

      76 comments  ·  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).

      964 votes
      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)

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

        839 votes
        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)

          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.

          810 votes
          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)

            We’ll send you updates on this idea

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

            TVP support for stored procedures

            606 votes
            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)

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

              481 votes
              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)

                We’ll send you updates on this idea

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

                EF full support of XML field

                366 votes
                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)

                  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…

                  323 votes
                  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)

                    We’ll send you updates on this idea

                    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.

                    319 votes
                    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)

                      We’ll send you updates on this idea

                      22 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
                        I agree to the terms of service
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

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

                        263 votes
                        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)

                          We’ll send you updates on this idea

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

                          204 votes
                          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)

                            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.

                            192 votes
                            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)

                              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

                              191 votes
                              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)

                                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

                                178 votes
                                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)

                                  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

                                  169 votes
                                  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)

                                    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

                                    151 votes
                                    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)

                                      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.

                                      149 votes
                                      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)

                                        We’ll send you updates on this idea

                                        0 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…

                                        139 votes
                                        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)

                                          We’ll send you updates on this idea

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

                                          134 votes
                                          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)

                                            We’ll send you updates on this idea

                                            8 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