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. Configure the string based search to be 'case sensitive' or 'case insensitive'

    Every time we need to search a string (contains/startswith etc), we need to write .ToLower() in each expression. But there should be a configuration property where we can define whether we want to search in case sensitive way or we want to ignore the case sensitivity.
    Thus we can avoid writing the same expression in whole application's data layer.

    4 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 →
    • Property to inform when entity is being materialized

      If you perform business logic in the entitys OnPropertyChanged event handler, eg. calculating some related properties or changing a state property when certain properties are changed, your code is also run when the entity is fetched from the database. This is not a real change of the entity, it is just being loaded. It would be nice if the EntityObject class had a property bool IsMaterializing that was true so you could break out of the OnPropertyChanged handler.

      4 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 →
      • Complex (struct) key properties for tables with multiple primary keys. Enabling easier search by key

        Some tables have more than one field included in primary key.

        This makes definition of generic methods that search by key hard to implement.

        If it would be possible to combine all database keys into one struct in model, and enable T4 templates to recognize which property is the key, template-generated repository could be much more powerful.

        4 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 →
        • EF factory similar to the ADO.NET provider factory to allow easy swapping between providers

          Provide an Entity Framework Factory similar to the ADO.Net Provider which allows easy swapping between different Entity Framework models such as SQL Server, Oracle, MySQL, DB2 etc. simply by providing the appropriate database provider information in a manner similar to the current ADO.Net Database Provider Factory.

          4 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 →
          • Add attribute for federated tables

            Add a "FederatedOn" attribute to the "Table" data annotation so Code First entities can be associated to a SQL Azure Federations federated member. For instance: [Table("Pessoas", FederatedOn = "TenantId=TenantId")]
            As an alternative, allow an equivalent attribute to be declared on the entity property that is the federation distribution key (e.g. the TenantId property).

            4 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 →
            • Eager Loading With Filters

              We should be able to specify what we want to include inside the include statement. This way, if we have a lot of information, we will not have a performance hit.

              For example:

              var blogs1 = context.Blogs
              .Include(b => b.Posts)
              .ToList();

              This is fine, but imagine you have a LOT of posts. If you want to have only Posts from today, why not having something to filter it down directly from the SQL.
              var blogs1 = context.Blogs
              .Include(b => b.Posts, d=>d.Date>=DateTime.Now)
              .ToList();

              4 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 →
              • Improve conditionals on Table-per-Hierarchy

                It never works when your conditionals are based on a int column so where Type=1 etc. Only seems to work for when some column Is Null. It complains about mapping when you try and do this. Seems impossible to work around

                4 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 →
                • Ignore Duplicate Inserts

                  On the context simply allow a setting to ignore duplicate insertions. It should just add a not exist sub select query to ensure that a duplicate is not inserted on say a primary key or unique key...

                  This just removes a lot of admin on the insert side of things. If the data is already there why complain about about it unless you need to handle it.

                  This will be exceptionally useful on a many to many insert. If this is in place then I dont need to first check both sides of the insert to ensure that the data…

                  4 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 Entity Framework Releases to Microsoft Reference Source Server

                    Make it quick and easy to see the source code during debugging and allowing Visual Studio to load the source on demand as it does for the core .net framework.

                    4 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 →
                    • Designer support for specifying Interfaces for Entities

                      I have an interface that a lot of my entities support.

                      interface Audit
                      {
                      DateTime CreatedAt,
                      int CreatedBy,
                      DateTime ModifiedAt
                      int ModifiedBy
                      }

                      It would be nice to be able to mark Entities as supporting this interface in the designer.

                      See also http://stackoverflow.com/questions/4093897/interface-inheritance-in-entity-framework

                      4 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 →
                      • Create a convention to automatically convert null string properties on a model to empty strings

                        Create a convention to automatically convert null string properties on a model to empty strings

                        4 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 →
                        • Method to get context from entity

                          some times we need to know the context from entity

                          4 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 →
                          • TPH should use Discriminator Expression

                            Allow via DataAnnotation or Fluent API which column in an abstract class is the Discriminator. For example, in a Vehicle table you could identity a VehicleType [int] as the discriminator.

                            Then in derived class (e.g., PassengerCar) you could identity what values (or set of values) distinguish the type in the table. For example, [DiscriminatorExpression("VehicleType in (1,4,7,10)")]

                            4 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 →
                            • Persistant Ignorant Base Types

                              Supporting base types that don't need database serialization would be ideal. For instance, an abstract class

                              "Layout", and then the classes that inherit from it are persisted in the database, but the Layout class is just an abstract template.

                              4 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 →
                              • Suppress specific errors/warnings

                                When doing "Model First" development THERE IS NO BACKING STORE. I don't want to create a phony one. I don't want a store or any mapping to one ... period. I'll deal with that when the time comes. But I should be able to model away w/o a map or store.

                                Ok ... you should provide a warning ... as you do. during validation I get a raft of 11007 and 11008 "errors" and a 2062 error during compilation.

                                But I should be able to suppress those warnings and errors as well.

                                In Model First you do NOT specify mapping…

                                4 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 →
                                • Raise event right after EntityObject is materialized

                                  When an EntityObject is materialized (i.e. after all its values are loaded from the database) an event should be raised.
                                  I want to perform some setups and things each time the entity's data is set in its properties (including nav properties), there is no way to raise such an event, especially not with navigation properties where the AssociationChanged event is not raised at all for loading from db).
                                  After the Constructor passes and the properties are all set with data from db, that event should be raise.
                                  Should be something like EntityMaterialized or EntityLoaded etc.
                                  In general I think the…

                                  4 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 →
                                  • Cascade Delete with Triggers

                                    Using triggers for cascade delete/set allows for multiple cascades on the same table where the built-in sql server cascade does not

                                    4 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 for POCO views using Entities

                                      Currently i have a problem of showing a link between different entities - Say students, courses and lectures. Students have few of the attributes of courses, and lectures also have few overlapping attributes of courses (used via reference keys). To show these 3 entities together in a model / UI view, i will always have a compute a single model and bind it to UI. For each change in entities i have to update model (and vice versa). Instead if i get a new POCO view (assuming its supported by EF), i can always show latest data using the new…

                                      3 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 →
                                      • Ability to place manual code in a seperate file for SSDL and CSDL away from auto-generated code such as custom functions

                                        It would be nice to be able to place custom / manual code such as functions inside a separate file instead of placing the code in the auto-generated EDMX file.
                                        This way all of our "developer" code is away from the "auto-generated" code and can easily be found / read.

                                        3 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 →
                                        • Collation support

                                          Currently strings are compared via default database collation or column collation when the comparison is translated to SQL. But they are compared to be binary equal when the code is executed in CLR.

                                          So adding .ToList() before .Select() may suddenly change the result of comparison. And the tests with mocked IQueryables also work differently from the database translated queries.

                                          Also it's sometimes required to compare strings using different collation. Currently that's only possible if you load the entire data into memory first and compare in CLR. However, even that case is troubling since there is no exact equivalent of SQL…

                                          3 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 8 10 12 15 16
                                          • Don't see your idea?

                                          Entity Framework Core Feature Suggestions

                                          Feedback and Knowledge Base