Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Entity Framework Core 6 Design Question

Entity Framework Core 6 Design Question

Scheduled Pinned Locked Moved Database
questioncsharpasp-netdatabasewpf
1 Posts 1 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I'm new to EF, so bear with me. I have my own framework that I've been using for years. One assembly, AppSecurity, is responsible for logging in, roles, rights, etc. Up to now it was done in Linq-To-SQL. I'm looking to convert it to Entity Framework Core. When I created a new project that needed app security, I reference my AppSecurity assembly and passed in a connection string or DBContext. This has been working fine for years. But now, for EF, I'm not sure how to set this up. Let's say I'm creating a WPF app called MyNewApp. It has a repository class and manages its own data. But for the security portion I want to use my AppSecurity. So there are two different DBContext classes. How do I run migrations? Can I run migrations on two different projects? Will one overwrite the other?

    In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups