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 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. Filtering support in databinding

    Add Filter and Sort support to Windows Forms BindingSource when bound to EF as in example below.

    Dim context As New MyEntities
    context.Employees.Load()
    EmployeeBindingSource.DataSource = context.Employees.Local.ToBindingList()

    'Would like the following to then work
    EmployeeBindingSource.Filter = "FirstName = 'SANTA'"
    EmployeeBindingSource.Sort = "FirstName"

    I use data-driven filters stored outside of the application, so new filters and sorts may be added without new code.

    See also
    https://connect.microsoft.com/data/feedback/details/704105/entity-framework-winforms-datagridview-support-for-bindingsource-filter-sort-and-column-heading-sort#details

    16 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 →
    • Provide access to ModelBuilder for Database First

      Our database structure is set up in such a way that all tables contain soft-deleted columns and most contain an owner account key column.

      Both of these provide a level of filtering we would like to let Entity Framework take care of for us at a global level, instead of always writing "&& t.Deleted == false && t.Owner == LoggedInOwnerKey" on our linq join/where clauses.

      This is currently possible with Code First, when you use the DbModelBuilder during the DbContext.OnModelCreating() but that method is not available when using EDMX strategy.

      All we are doing with the DbModelBuilder is adding System.Data.Entity.ModelConfiguration.Conventions.IConventions…

      16 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 →
      • Remove sysdiagrams from Tables in Update Model From Database

        SysDiagrams always appears in the list of table when Upgrading Model from Database. This is just noise and therefore a nuisance.

        15 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 →
        • 15 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 →
          • Add FILEGROUP Support

            It should be possible to create tables, indices, etc. on different file groups in order to improve performance.

            15 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 →
            • Super-flexible partial-selection EF-4.1

              I've read the post http://blogs.msdn.com/b/adonet/archive/2011/01/30/using-dbcontext-in-ef-feature-ctp5-part-5-working-with-property-values.aspx, it's beautiful, and I have some additional requests:

              1) I should be able to decorate some properties in my DTOs so it can have a different name (or decorate them at runtime with type-description).
              2) Should be able to select partial queries:
              - Via property selectors (both typed and strings) via DTO initializers
              - Via constructor of another class (in EF4 this is not allowed) I mean .Select(u=> new FatUnicorn(u.Id, u.CornLength));
              - As per the previous example, should also be: context.Unicorns.Select<UnicornSummary> using the method of assigning matching property names or decorated with attributes as…

              14 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…)
                2 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
              • Support SQL Server Schemas/Owners as CLR namespace/classes

                SQL Server schemas (or owners) should reflect into CLR namspace branches or inner classes.

                If you have Sales.Customer and Orders.Customer on the database, that shouldn't be Customer and Customer1.

                14 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…)
                  2 comments  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                • Support for timestamp in model-first

                  You cannot use optimistic concurrency in model-first mode. This is because the entity designer does not support a timestamp type. Even if you add a timestamp column and update your model, it turns into binary(8) in the generated SQL. Manual changes to set the type to "timestamp" in the EDMX file are overwritten and the property reverts to Binary(8).

                  As far as I can tell, this makes it impossible to use this feature in model-first mode.

                  14 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 →
                  • Future Queries

                    I didn´t find any topic about this, but is very important.

                    Its described here: https://github.com/loresoft/EntityFramework.Extended#future-queries

                    // build up queries
                    var q1 = db.Users
                    .Where(t => t.EmailAddress == "one@test.com")
                    .Future();

                    var q2 = db.Tasks
                    .Where(t => t.Summary == "Test")
                    .Future();

                    // this triggers the loading of all the future queries
                    var users = q1.ToList();

                    13 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 →
                    • 13 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 →
                      • Encryption of Columns

                        Would be nice to be able to map encryption to a column. have a convention based or override using a
                        function (Func<>).

                        13 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 →
                        • Add Support for custom Extension methods

                          Support extension methods to be defined for entities or generic extensions. As long as the extension returns an IQueryable or expression that only includes supported operations/extensions, then the provider should expand the extension method and replace it in the expression tree with the the returned iqueryable/expression.

                          Thus for the most part, any extension method encountered in the expression that is not supported, should be called to return an expression that can be inserted into the expression tree. So long as the process operators recursively as it is expanding the expression, eventually the expression tree will consist of supported expressions and…

                          13 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…)
                            2 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                          • Database VIEW creation support and specific mapping of entites to views.

                            Currently, to get Code First to create a database with a VIEW, the CREATE VIEW sql statement must be hacked a couple of Context.Database.ExecuteSqlCommand's. One to drop the table that EF created for the entities you're mapping to it and another to create the view using the same name as the table EF assumes is still there.

                            When mapping an entity to a view, you have to use modelBuilder.Entity<T>.ToTable and treat the view as a table. Entity Framework assumes the view is still a table and assumes it's read/write. A new method of .ToView might be added to tell EF…

                            13 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 →
                            • Update database without seeding

                              It would be great to be able to do an "update-database" without having to execute the seeding commands as well. We are seeding quite a lot of meta data into our system, and it is a waste of time to wait for seeding each time we update/manipulate our model.

                              A flag in command prompt like

                              update-database -noseeding

                              would suffice.

                              13 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 →
                              • Foreign Key Constraints on Views

                                The "create/update modell from database" functions of the EF designer should support foreign key constraints on views.
                                As a result of the foreign keys we get navigation properties on the views.

                                (In Oracle database it is possible to create (disabled) foreign keys between views.)

                                13 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 →
                                • RecreateDatabaseIfModelChanges shouldn't drop database

                                  RecreateDatabaseIfModelChanges shouldn't drop database (we often dont have permissions on server), but should drop tables and recreate them.

                                  13 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 →
                                  • 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…

                                    12 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 →
                                    • Write EntitySet as XML like DataTable.WriteXML()

                                      Ability to save contents of a loaded entity set into an xml file to persist into hard disk then load again like is possible in data tables

                                      12 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 →
                                      • 12 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 →
                                        • EdmGen.exe should support generating an edmx file from a connection string

                                          EdmGen.exe should support generating an edmx file from a connection string.

                                          In .net 3.5, EdmGen2.exe (http://archive.msdn.microsoft.com/EdmGen2) was able to generate an edmx file from a connection string.

                                          But for (EF) .net 4.0, we have lost this ability.

                                          Thank you.

                                          12 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 →
                                          1 2 5 7 9 18 19
                                          • Don't see your idea?

                                          Entity Framework Feature Suggestions

                                          Feedback and Knowledge Base