TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
2.1k
479.7k
How to create table definition using NUGET command?
May 12 2020 12:35 PM
Hi Team
I have new table definition on my database, now i cant seem to access the context using this command on my NuGet. NB: I have followed this link here, i am unable to achieve this well and need some help https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/powershell
Scaffold-DBContext
"Data Source=GcobaniM-L\SQLEXPRESS;Database=eNtsaRegistration;Integrated Security=True"
Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
Scaffold-DBContext : The term
'Scaffold-DBContext'
is
not recognized
as
the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if
a path was included, verify that the path
is
correct and
try
again.
At line:1
char
:1
+ Scaffold-DBContext "Data Source=GcobaniM-L\SQLEXPRESS;Database=eNtsaR ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Scaffold-DBContext:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Reply
Answers (
4
)
How to load a second page using ajax jquery?
Custom Linq query for Entity Framework & ASP.NET MVC app