Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to update modal class using dbfirst in asp.net core

Title:  Update DbContext
Command: dotnet.exe
Arguments: ef dbcontext scaffold "your-connection-string" Microsoft.EntityFrameworkCore.SqlServer --output-dir=Models --force
Initial directory: $(ProjectDir)

  Then optionally tick "Use Output window", hit Apply and OK.

  When you go to Tools again, this new menu should be there and ready for reuse, 
  in just a click of a button!
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #modal #class #dbfirst #core
ADD COMMENT
Topic
Name
3+3 =