how to Start working asp.net core mvc
Microsoft Net Framework

how to Start working asp.net core mvc

 

Solution

Start working asp.net core following nugets are required

Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.SqlServer
Microsoft.EntityFrameworkCore.Design
Microsoft.EntityFrameworkCore.Tools
Microsoft.EntityFrameworkCore.Tools.DotNet

Right click on project and  "Edit" project name .csproject

add this one

<ItemGroup>
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" />
  </ItemGroup>

  ref: https://www.youtube.com/watch?v=7NDE8wR5X_c

  then open visual Developer Command promompt of VS

  then copy of the project folder like

  e.g F:\projects\TM\TimeManagment\TimeManagment.WEBC

  in command tool write cd F:\projects\TM\TimeManagment\TimeManagment.WEBC

  and click
  type name of drive lie F:
  and click enter it will show you on that path
  write dir and enter

  dotnet ef dbcontext scaffold "Server=DESKTOP-OOSTFNR\SQL2K12;Database=TMDB;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -o Model

 if any update in db

 dotnet ef dbcontext scaffold "Server=DESKTOP-OOSTFNR\SQL2K12;Database=TMDB;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -o Model -f


  https://www.youtube.com/watch?v=7NDE8wR5X_c

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM
03
07

New Messages

George Floyd
  • Edit Post Edit This Post within a Hour
  • Hide Chat Hide This Post
  • Delete Chat If inappropriate Post By Mistake
  • Report Inappropriate Chat
  • 4.5kb
  • Hi James! Please remember to buy the food for tomorrow! I’m gonna be handling the gifts and Jake’s gonna get the drinks
  • Hi James! Please remember to buy the food for tomorrow! I’m gonna be handling the gifts and Jake’s gonna get the drinks
  • Hi James! Please remember to buy the food for tomorrow! I’m gonna be handling the gifts and Jake’s gonna get the drinks