Тэги:
#asp.net_core_mvc_-_complete_application #mvc_project_in_asp.net_c#_step_by_step #complete_mvc_project_with_entity_framework_core #adding_your_first_model #complete_mvc_app_step_by_step #learn_asp.net_mvc #ecommerce_mvc_c# #ecommerce_mvc_project #learn_asp.net_mvc_5_-_complete_tutorial #dbcontext_in_entity_framework #dbcontext_.net_core #asp.net_dbcontext #dbcontextoptionsbuilder_exampleКомментарии:
Hi , I am getting error while installing Microsoft entity framework. Could you please help me on it. error : Installing 'Microsoft.EntityFrameworkCore' failed Additional info: Package restore failed. Rolling back package changes.
ОтветитьI can't see the startup.cs file in my project ?? what should I do in this case
Ответитьbuilder.Services.AddDbContext<AppDbContext>(); (.net 6)
ОтветитьAs you instructed in my project there is no such file created as startup.cs to configure dbcontext!! what should i do ?? Instead I have program.cs file.
ОтветитьSorry, I am beginner and I want to build lines 2,3,4,5 like the video. Thanks
Ответитьwhich version of .NET are you using?
ОтветитьWhere is link download the Database?
Ответитьbut where in program.cs ,,,, like above which line or code as you said AddControllerWithView();
ОтветитьThere is no startup class in . Net 7...
What should I do?
There's not Startup Class in .NET 6, what I should do
Ответитьwith versions from 6. we add
builder.Services.AddDbContext<AppDbContext>();
at the program.cs
Hello I have a problem in installing the Microsoft Entity framework core, I really want to continue this project I hope you can help me with this, thanks.
Ответитьis this done using sql server databse?
Ответитьugh... mine does not have a startup.cs... where do I add the dbContext in this case?
Ответитьthank you so much
Ответитьwhat if we don't have startup.cs do we have to create the startup.cs file or anthing else
Ответитьcan you make more video with russian subtitles?)
ОтветитьI cant find any startup file in my solution explorer.. please advice
Ответитьhow do i do this in dotnet6 in the program.cs file? please help
ОтветитьSir there is no Startup.cs in my Visual studio code
Ответитьmy project no has Startup.cs files
ОтветитьThanks, videos are very comprehensive, clear.
ОтветитьIs it possible to use DbContext on the Client side Web App? without API Server that means Directly contacting SQL server.
Ответитьpls what i do with this error
=====>System.InvalidOperationException: Unable to determine the relationship represented by navigation 'Cinema.Movies' of type 'List<Movie>'. Either manually configure the relationship, or ignore this property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.
Another outstanding tutorial !Your teaching style is awesome.. makes it easy for anybody to understand...
Ответить