Can I share entities between solutions?

Marc Romero

I have a problem with sharing entities in 2 different solutions. I have one entity (Country) that I need in 2 solutions. One solution it's a web application and the other it's a console application but I need this entity in both.

Additionally, we are doing migrations and I don't know what the behaviour of code first is in this case if I change the entity twice one per solution.

It is possible to share entities between solutions in entity framework 6 code first?

Ninglin

If I understood correctly you want to use an entitie which is contained in a project and use it botjh in a web project and a console project. You can do that by referencing the output dll of your entities project from where you need it.

In your case you would add a reference to entities.dll on the consoleapplication project and another one on the webapplication project.

Personally I would have all the projects in the same solution and reference each project I needed. But it is possible to do it your way.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Is there a way I can share javascript code between two AngularJS Web solutions with Visual Studio?

From Dev

How can I share similar properties between two entities in Symfony using Doctrine?

From Dev

How can I share an Entity for other entities' OneToMany

From Dev

How can I share a class between processes?

From Dev

How can I share a ContextMenu between Components

From Dev

Share expressions between Linq to Entities and Linq to Objects

From Dev

Share FormType between entities, best practice/approach

From Dev

How can I create a moving line between two entities in CesiumJS?

From Dev

How can I create a relation between entities twice

From Dev

How can I share sessions between Chrome and Paw?

From Dev

Symfony 2, Can I share the login between frontend and backend?

From Dev

How can I share content-properties between templates

From Java

can I share the same datastore between different VMware 6.5 clusters?

From Dev

Can I share code between different parts of Chrome Extension?

From Dev

How can I share clover coverage data between maven and IntelliJ

From Dev

How can I share my clipboard between two X servers?

From Dev

Can I share ACM SSL certificates between AWS acounts

From Dev

How can I share a struct with pointers between processes in C?

From Dev

Can I share persistent volumes between builds in Google Cloud Build?

From Dev

How can I share my clipboard between two X servers?

From Dev

Can I share my tarsnap key file between machines?

From Dev

How can I share clover coverage data between maven and IntelliJ

From Dev

Can I share code between different parts of Chrome Extension?

From Dev

Can I share /usr/local between multiple Linux distributions?

From Dev

can I share my SSH keys between WSL and Windows?

From Dev

What partitions can I share between different flavors of Ubuntu

From Dev

Can I make sudo share cached credentials between terminals?

From Dev

How can I share a monitor between two computers?

From Dev

How can I share assembly references between Autofac modules

Related Related

  1. 1

    Is there a way I can share javascript code between two AngularJS Web solutions with Visual Studio?

  2. 2

    How can I share similar properties between two entities in Symfony using Doctrine?

  3. 3

    How can I share an Entity for other entities' OneToMany

  4. 4

    How can I share a class between processes?

  5. 5

    How can I share a ContextMenu between Components

  6. 6

    Share expressions between Linq to Entities and Linq to Objects

  7. 7

    Share FormType between entities, best practice/approach

  8. 8

    How can I create a moving line between two entities in CesiumJS?

  9. 9

    How can I create a relation between entities twice

  10. 10

    How can I share sessions between Chrome and Paw?

  11. 11

    Symfony 2, Can I share the login between frontend and backend?

  12. 12

    How can I share content-properties between templates

  13. 13

    can I share the same datastore between different VMware 6.5 clusters?

  14. 14

    Can I share code between different parts of Chrome Extension?

  15. 15

    How can I share clover coverage data between maven and IntelliJ

  16. 16

    How can I share my clipboard between two X servers?

  17. 17

    Can I share ACM SSL certificates between AWS acounts

  18. 18

    How can I share a struct with pointers between processes in C?

  19. 19

    Can I share persistent volumes between builds in Google Cloud Build?

  20. 20

    How can I share my clipboard between two X servers?

  21. 21

    Can I share my tarsnap key file between machines?

  22. 22

    How can I share clover coverage data between maven and IntelliJ

  23. 23

    Can I share code between different parts of Chrome Extension?

  24. 24

    Can I share /usr/local between multiple Linux distributions?

  25. 25

    can I share my SSH keys between WSL and Windows?

  26. 26

    What partitions can I share between different flavors of Ubuntu

  27. 27

    Can I make sudo share cached credentials between terminals?

  28. 28

    How can I share a monitor between two computers?

  29. 29

    How can I share assembly references between Autofac modules

HotTag

Archive