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.

  • Hot ideas
  • Top ideas
  • New ideas
  1. WAQS

    Adopt the WAQS framework into EF source code

    WAQS framework is a layer of abstraction over the Entity Framework

    WAQS is addressing many of the painful scenarios under EF, with a great design and productivity.

    http://www.dailymotion.com/video/xuc1jb_waqs-application-scaffolding_tech

    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…)
      1 comment  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
    • Support Enum.HasFlag

      Starting with Entity Framework 5, Enum property is now supported (and it's a great feature !).

      It would be nice if EF support the HasFlag method. For example :

      context.ScheduledTasks.Where(st => st.Days.HasFlag(DayOfWeek.Sunday));

      won't work (LINQ to Entities does not recognize the method 'Boolean HasFlag(System.Enum)' method, and this method cannot be translated into a store expression.)

      I know that the following query will work :

      fooContext.ScheduledTasks.Where(st => (st.Days & DayOfWeek.Sunday) == DayOfWeek.Sunday);

      but it's more difficult to read, especially when there is a lot of condition.

      Could you support the HasFlag method ?

      Thanks,

      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…)
        2 comments  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
      • Support for ASP.NET EntityDataSource and DynamicData for EF6

        Because in EF6 the ObjectContext class is being moved into the EntityFramework assembly, existing code will treat it separately from the "old" ObjectContext in the System.Data.Entity assembly.

        I use EF CodeFirst in a mixed MVC / WebForms(DynamicData) application.

        Either bring out new versions of EntityDataSource and DynamicData for EF6 or provide a way from going from a EF4/5 ObjectContext to an EF6 one.

        9 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 →
        • Migrations: Allow Multiple Migration SQL Generator per Provider

          One way to allow community to contribute to EF Migrations is allow us to create more `MigrationOperation`s.

          For example, people can then add things like full text index, etc., things that are not in the core EF Migrations and are just boring SQL statements that need to be combined together.

          Currently, to build a provider agnostic `MigrationOperation`, you need to write the SQL generated for the operation in a class derived from `MigrationSqlGenerator`. If you want to add `CreateFullTextCatalog` operation and support SQL Server for example, you inherit `SqlServerMigrationSqlGenerator`, add a `Generate` method for your operation, and ensure all other…

          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  ·  Flag idea as inappropriate…  ·  Admin →
          • Allow inserting new entities with predefined identity column values (INSERT_IDENTITY)

            Especially for migration projects it would be useful to allow entities to be saved with predefined identity values.

            Until now you have to use ADO.NET to do this.
            SET IDENTITY_INSERT TableName ON
            INSERT INTO TableName (IdColumn, Column1)
            VALUES (234, 'Value')

            I would like to tell the DbContext to use this feature when saving new entities.

            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  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
            • Support for LIKE with wildcards (% _)

              There is no way in EF to do a true native LIKE with wildcards (% and _). "Contains" limits you to %value%. Would like to be able to specify the wildcards within the LIKE myself. For example:

              select * from table where name like '%a_b_c%'

              At the moment there is no way to do this unless you use SqlQuery/ESQL.

              Other options, such as INSTR are not desirable alternatives.

              26 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…)
                under review  ·  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • Support for MERGE (UPSERT) statement

                I would like to see the T-SQL MERGE statement supported. For multi threading situations it really would be useful.

                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 →
                • Delete Collections

                  I think there would be nice idea if you give method to delete collection. Without using foreach statement.

                  Now:
                  foreach(var item in collection)
                  {
                  db.Customers.Remove(item);
                  }
                  db.SaveChanges();

                  and should be simply

                  db.Delete(collection);
                  db.SaveChanges();

                  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 →
                  • Updateable Views

                    I would like to see update-able views. This is available in Telerik ORM, and I have found it very helpful in situations where I initially assumed a grid would only need to display read only data, but was months later asked to allow editing.

                    There are other ways to do this of course, but they require recoding. This would make certain maintenance tasks easy.

                    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 →
                    • Entity Framework support for Windows Store apps

                      System.Data.dll -- which is fundamental to EF -- is not available inside Windows Store Apps. Thus development of Windows Store apps is two steps back of where WPF and Silverlight development have been.

                      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 →
                      • support scalar -valued function

                        scalar function is used usually some custom function to retrieve some only one value.
                        eg.custom ID not Guid

                        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  ·  Flag idea as inappropriate…  ·  Admin →
                        • Bulk Insert

                          ADO.Net supports bulk insert for big amount of data. With the help of this library
                          http://archive.msdn.microsoft.com/LinqEntityDataReader
                          It is possible to do Bulk inserts with entities. But it would be nice if there would be a integrated approach.

                          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 →
                          • Use names defined in linq query in generated sql

                            Currently if you have something like

                            select new { Year = c.DateEntered.Year }

                            the generated sql uses C1 for the column name. I would find it very useful if the used Year.

                            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  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                            • Generate separate POCO Entities

                              When creating the edmx (Database First) within Visual Studio, there should be a checkbox to tell the code generators to create a separate library that contains the entities selected from the database. These can be used as domain objects/models across all layers in the application.

                              Currently in EF5, you have to cobble together some hack to separate the POCO's - delete xml entries in the *.csproj and do other dangerous steps just for separation.

                              EF6 should have the hooks for configuration by users within Visual Studio.

                              That's the one thing NHibernate has over EF - separate POCO's

                              Thanks!

                              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  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                              • Navigation properties in composite ids without need for the corresponding scaler property

                                If you have a class like

                                public class CustomerAddress
                                {
                                public virtual Customer Customer { get; set; }
                                public virtual Address Address { get; set; }
                                public virtual string AddressType { get; set; }
                                public virtual DateTime ModifiedDate { get; set; }
                                }

                                you should be able to create a composite id like this

                                HasKey(a => new { a.Customer, a.Address });

                                without defining CustomerId and AddressId properties

                                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 →
                                • EF5 Model First - Genrate DB Update Script

                                  I am creating a Database with the Model First SQL Script Generation. Then later when I need to Update the Model I don't want to delete all tables and content, I want to generate an update Script.

                                  Its possible in EF4 with an Tool:
                                  http://visualstudiogallery.msdn.microsoft.com/df3541c3-d833-4b65-b942-989e7ec74c87/

                                  but in EF5 there is atm no possibility to update the Model with "Model first".

                                  Idea: perhaps try to include the SQL-Schema Comparer in EF.

                                  149 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…)
                                    10 comments  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Runtime query builder and auto mapper without database schema

                                    can create query on each database with query string that schema not defined for entity framework and auto map to object

                                    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  ·  runtime  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Public access to metadata mapping to allow building custom SQL queries

                                      Provide an access to the code-first metadata mapping.
                                      The mapping is already described. Why not to provide a public access to a table name, schema, class property to table column mapping.
                                      It will allow to build advanced SQL queries using Database.SqlQuery when performance is is needed. For example - bulk inserts in one query. Or other queries that don't require object state tracking. Currently you need to hard code schema, table and column names in a string, why not provide a way to build a query using defined mapping metadata?

                                      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 the TPH Inheritance for IS Null/IS Not Null pattern

                                        Be able to map subclasses based on whether a column is null or not. This works in the EDMX, but not Code First

                                        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  ·  tools  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Improved API for Migrations

                                          The API for DbMigrator is lacking. I would like to see .UpOne(), .DownOne(), .Up(n), .Down(n) methods to attempt to perform that number of migrations.

                                          .Update("0") is an odd-looking way to completely thrash the DB. Something like .RollbackAll() would be a very simple implementation and have a much clearer name.

                                          Having .Update() take an additional optional parameter to completely rollback first, and apply all migrations from scratch might be very nice, especially in a test or development environment.

                                          Generating an SQL script for logging purposes and then performing the DB migration must currently (I believe) be done in two steps. A…

                                          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 →
                                          ← Previous 1 3 4 5 6 7 8 9 10 11 15 16
                                          • Don't see your idea?

                                          Entity Framework Feature Suggestions

                                          Feedback and Knowledge Base