EF database first, rename entity table name

user3135932

I have project with approach database first. Tables this database have names kind GUID. I want use human names in code. How i can change name entity, but no change table name in database?

MarcinJuraszek

You can do that using EF Model Browser:

  • Open Entity Model Browser
  • Navigate to your entity under YourModel/Entity Types
  • right click + Properties
  • You can chance entity type name here

Or using designer:

  • right click on your entity on the design pane + Properties from context menu
  • Change Name property value

It will change generated entity class name without changing the database table nama.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

EF database first, rename entity table name

From Dev

Get Entity Table Name - EF7

From Dev

How to map table name to EF Entity?

From Dev

Single table hierarchical data with EF Database First

From Dev

EF Code First rollback database table design

From Dev

Entity Framework Code First - Changing a Table Name

From Dev

Add new table to an existing database using database first approach EF

From Dev

Adding an entity (and respective table) to EF DB-first model

From Dev

One entity multiple tables in EF code first correct table names

From Dev

EF Rename Column in MySql database

From Dev

Adding an existing database table to a EF6 Code first repository

From Dev

Entity Framework code-first defining database name

From Dev

How to rename db columns of linking table (many to many realiton) in ASP .NET MVC EF (code first)

From Dev

EF Code first and Database first

From Java

Howto specify table name with Entity Framework Code First Fluent API

From Dev

How to specify table name with Entity Framework Code First Fluent API

From Dev

Influencing how entity classes are created in EF 6 code-first from database

From Dev

EF 6 database first make all properties virtual in generated entity classes

From Dev

Rename table name with Doctrine migrations

From Dev

Remove table name prefix in EF code first foreign key table column

From Dev

EF code-first: how to save two entity's data in one table?

From Dev

Log to database with EF Code First

From Dev

Custom properties in EF database first

From Dev

Is this a good practice for EF Database First?

From Dev

How to rename database and files with entity framework

From Dev

Rename a property or give an alias name in Entity Framework?

From Java

Name attribute in @Entity and @Table

From Dev

How to get Entity and its properties and types using table name in EF6

From Dev

Rename a table, then create a table with the same name in oracle

Related Related

  1. 1

    EF database first, rename entity table name

  2. 2

    Get Entity Table Name - EF7

  3. 3

    How to map table name to EF Entity?

  4. 4

    Single table hierarchical data with EF Database First

  5. 5

    EF Code First rollback database table design

  6. 6

    Entity Framework Code First - Changing a Table Name

  7. 7

    Add new table to an existing database using database first approach EF

  8. 8

    Adding an entity (and respective table) to EF DB-first model

  9. 9

    One entity multiple tables in EF code first correct table names

  10. 10

    EF Rename Column in MySql database

  11. 11

    Adding an existing database table to a EF6 Code first repository

  12. 12

    Entity Framework code-first defining database name

  13. 13

    How to rename db columns of linking table (many to many realiton) in ASP .NET MVC EF (code first)

  14. 14

    EF Code first and Database first

  15. 15

    Howto specify table name with Entity Framework Code First Fluent API

  16. 16

    How to specify table name with Entity Framework Code First Fluent API

  17. 17

    Influencing how entity classes are created in EF 6 code-first from database

  18. 18

    EF 6 database first make all properties virtual in generated entity classes

  19. 19

    Rename table name with Doctrine migrations

  20. 20

    Remove table name prefix in EF code first foreign key table column

  21. 21

    EF code-first: how to save two entity's data in one table?

  22. 22

    Log to database with EF Code First

  23. 23

    Custom properties in EF database first

  24. 24

    Is this a good practice for EF Database First?

  25. 25

    How to rename database and files with entity framework

  26. 26

    Rename a property or give an alias name in Entity Framework?

  27. 27

    Name attribute in @Entity and @Table

  28. 28

    How to get Entity and its properties and types using table name in EF6

  29. 29

    Rename a table, then create a table with the same name in oracle

HotTag

Archive