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 vote and comment on it.

If it doesn't exist, you can post your idea so others can vote on it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. Allow Disabling the Default Transaction Behavior of ObjectContext.ExecuteFunction()

    EF6 introduced a breaking change to the ObjectContext.ExecuteFunction() API causing it to start a transaction when one does not already exist. This behavior should be made optional.

    25 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 →
    • Built-in concurrency update and delete

      Built-in update and delete concurrencies by enable a standard rowrevision, combine with automatic scaffolding in mvc.

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

        7 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 →
        • Designer Option to Support Conversion Mapping from DateTime to DateTimeOffset

          Request Designer Option to Support Conversion Mapping from DateTime to DateTimeOffset in light of community opinion seeminly moving toward DateTimeOffset as a standard. In fact, OASIS OData v4 pruned DateTime in favor of DateTimeOffset.

          Unfortunately, modifying database schema is much easier said than done. Entity should have some sort of automapping/conversion to support the get/set between the persistence and poco layers.

          1 vote
          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 →
          • Allow indexers in LINQ queries

            Let us access indexers in the LINQ queries... Why do I need to save named POSTed data to an intermediate variable before I use it once to query the database? It worked fine in LINQ 2 SQL, and I have been waiting for it to be fixed since EF4.

            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 →
            • Updating the F# SqlEntityConnection Type Provider for EF 6

              The F# SqlEntityConnection Type Provider is a third way to interact with Entity framework (with the other two being an .edmx file and Code First).
              http://msdn.microsoft.com/en-us/library/hh362322.aspx

              This Type Provider doesn't support the updated low-level API changes that EF 6 requires, as far as I can tell. I'd love to have an updated version that supports the async features of EF 6.

              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 →
              • Optional Convention that assigns Default Value to not nullable types

                When using code first with an existing database, the "can not assign null to a non nullable type" exception can be realy painfull, because the compiler gives no warning, when i project a int? to a int.

                It would be very usefull to have a Convention / Configuration that enables the automatic use of GetValueOrDefault for these cases.

                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 →
                • support tables with the same name but diffrent schema

                  assume we have a table named Transaction with a schema GL and another one named Transaction but belongs to AR schema,
                  until now , could not be mapped in code-first

                  7 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 →
                  • Better error message for "The cast to value type ... "

                    It would be very usefull to get the name of the corresponding property or fieldname that causes the "The cast to value type 'System.Int32' failed because the materialized value is null...." exception.

                    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 →
                    • Entity Framework maping data definition language of Description schema

                      @code first
                      The Name property can mapping DDL of Description schema
                      public class Person
                      {
                      public int Id { get; set; }

                      [Description("姓名")]
                      public string Name { get; set; }
                      }

                      @database first
                      Description schema can convert property's DescriptionAttribute

                      @SQL
                      CREATE TABLE [ConsoleApplication3.MyDbContext].dbo.People (
                      Id int IDENTITY,
                      Name nvarchar(max) NULL,
                      CONSTRAINT [PK_dbo.People] PRIMARY KEY (Id)
                      ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
                      GO

                      EXEC sp_addextendedproperty N'MS_Description',
                      N'姓名',
                      'SCHEMA',
                      N'dbo',
                      'TABLE',
                      N'People',
                      'COLUMN',
                      N'Name'
                      GO

                      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 →
                      • TO BE OR NOT TO BE SPATIAL ; it’s a MUST HAVE

                        If you make a spatial query today using entity framework 6.1 , it ALWAYS makes a full table-scan , which takes forever for large tables. IT DOESN’T MAKE USE OF THE SPATIAL INDEX especially defined for that spatial column.
                        Well, T-SQL DOES USE a spatial index , like this:

                        SELECT TOP 1 *
                        FROM myTable WITH(index([SpatialIndex-mySpatialIndex_1]))
                        WHERE ogr_geom2.STIntersects(@Point) = 1
                        ORDER BY ogr_geom2.STDistance(@Point) ASC

                        But today , entityFramework 6.1 is not able to make use of the same , SUPER_FAST spatial index. It only does something like this:
                        System.Linq.IQueryable<SharpMapForm.soluri> d33 = null;
                        d33 = db.soluris.Where(x => x.ogr_geom2.Intersects(dbM) && x.ogr_geom2.InteriorRingCount >=…

                        1 vote
                        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 →
                        • 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 →
                          • Update with Where Clause

                            We should be able to update with a where clause.

                            For example, you have an entity named "Product" that is bound to a "User". You want to be sure that the update is done on the product that you have your new values but also to the current user when the product is saved. Normally, in SQL we do a Update statement on Product table by setting new values to the product (where clause). What is missing is the ability to also add a AND statement to add the User Id. This way, we can be sure that the 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…)
                              0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                            • Vastly improve LINQ translation

                              LINQ to SQL is the legacy alternative to EF. EF should support almost everything that L2S always did for two reasons:

                              a) to ease migration
                              b) because L2S was awesome and we want EF to be as well

                              Please address the issues mentioned in this post: http://scatteredcode.wordpress.com/2011/06/21/why-entity-framework-4-1s-linq-capabilities-are-inferior-to-linq-to-sql/

                              I did not author it, but I found many of those attempting to migrate a bug codebase. I was forced to abandon the migration because the issues were so many.

                              160 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 →
                              • Make PrimitivePropertyConfiguration.HasDefaultSqlValue("") or DataAnnotation attribute [DefaultSqlValue("")]

                                This will make easier to set values like GETUTCDATE() for DateTime columns or other internal SQL functions.

                                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 →
                                • Support SQL UDF invocation in LINQ to Entities

                                  When you write a LINQ to Entities query, there are functions like CLR Method to Canonical Function Mapping, (http://msdn.microsoft.com/en-us/library/vstudio/bb738681(v=vs.100).aspx) which can be used and are transalated to their DB (T-SQL) equivalents.
                                  If you want to invoke a custom function created in the DB (or a function which exists in the DB, and is not mapped to anything on the .NET side) you have no way to do it.

                                  It would be interesting to have a functionality that allows to do this, for example:

                                  * define custom mappings in the .NET side that convey enough information to be mapped…

                                  1 vote
                                  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 →
                                  • Add the Distinct clause to the C# Query Expression Syntax

                                    According to this MSDN page : http://msdn.microsoft.com/en-us/library/vstudio/bb546153(v=vs.120).aspx the Distinct clause for the query expression syntax exist in VB but not in C#.

                                    Please add it to C#.

                                    1 vote
                                    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 →
                                    • 6 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 →
                                      • Multi-Threading Support

                                        Make contexts thread-safe & provide support for concurrent data access without having to await each task to complete

                                        1 vote
                                        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 →
                                        • Support for working with databases with alot of models

                                          EF needs better support for working with large models. Our developers are having very hard times with merging models between projects that are concurrently executing. Our database has over 500 tables.

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

                                          Entity Framework Feature Suggestions

                                          Feedback and Knowledge Base