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. Web Development
  3. ASP.NET
  4. Model classes are not listed when "a controller using Entity FrameWork" is added

Model classes are not listed when "a controller using Entity FrameWork" is added

Scheduled Pinned Locked Moved ASP.NET
asp-netdatabasequestioncsharpsql-server
1 Posts 1 Posters 2 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.
  • A Offline
    A Offline
    Alex Dunlop
    wrote on last edited by
    #1

    Hi, I'm working on ASP.NET MVC test project. I decided to isolate my DataLayer from the main project. So, I added another project to my solution. I created all my model classes (public access modifier). Then I created my context class so DbContex can make relationships with my models. Then, I made my repositories using interfaces and implemented them. Then, I used EntityFramework to do migrations. Finally, I could create my CodeFirst database in SQL Server. Now, I want to add an admin area to my main project. After adding, I decided to add controllers using Entity Framework. But it doesn't list my DataLayer and its model classes in the list. How can I fix it? I can show you all my classes and interfaces if it was necessary.

    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