About 7,790,000 results
Open links in new tab
  1. entity framework - EF Migrations: Rollback last applied migration ...

    Reverts the effects of the most recently applied migration on the database without necessitating the use of the "Update-Database" command. Deletes the associated migrations and snapshots.

  2. database - Differentiation between 'Entity' and 'Table' - Stack Overflow

    Jan 29, 2020 · An entity object caches data from a database and provides an object-oriented representation of it. Depending on how you want to work, you can create entity objects from existing …

  3. c# - Ignore properties in data model while keeping them in EF Core ...

    I am creating a greenfield application that uses EF Core which must talk to a legacy database. I want EF to ignore some of the columns in the database because they will eventually be deprecated and I …

  4. entity framework migrations - How to delete and recreate from scratch ...

    I am using EF Code First with EF 5 in VS 2012. I use PM update-database command and I have a simple seed method to fill some tables with sample data. I would like to delete and recreate my …

  5. Raw SQL Query without DbSet - Entity Framework Core

    With Entity Framework Core removing dbData.Database.SqlQuery<SomeModel> I can't find a solution to build a raw SQL Query for my full-text search query that will return the tables data and als...

  6. Entity Framework Core creating model from existing database

    With Entity Framework Core, how do you generate the EF model and the entities? According to ASP.NET Core - Existing Database Microsoft article you need to run a command like this one in the …

  7. How to update record using Entity Framework Core?

    Oct 10, 2017 · 193 To update an entity with Entity Framework Core, this is the logical process: Create instance for DbContext class Retrieve entity by key Make changes on entity's properties Save …

  8. c# - update the database from package manager console in code first ...

    Aug 25, 2015 · 35 Code First Environment I'm trying to update the database from package Manager console. If my domain class changes, I have to drop and create the database. Instead of dropping …

  9. Entity Framework. Delete all rows in table - Stack Overflow

    Mar 5, 2013 · 5 The following works on SQLite database (using Entity Framework). It seems that the fastest way to clear all the db tables is using context.Database.ExecuteSqlCommand("some SQL"), …

  10. c# - Entity Framework Timeouts - Stack Overflow

    I am getting timeouts using the Entity Framework (EF) when using a function import that takes over 30 seconds to complete. I tried the following and have not been able to resolve this issue: I added