Asp.Net Core 6: Connect To MySql Server Database With Entity Framework Using C# | My Sql MySQL

preview_player
Показать описание


Package To Install
~~~~~~~~~~~~~
Microsoft.EntityFrameworkCore.Tools (3.1.10)
MySql.Data.EntityFrameworkCore (latest one)

NuGet Package Link (For packages)
~~~~~~~~~~~~~~~~~~~~~~~~~

Command
~~~~~~~
Scaffold-DbContext "server=localhost;port=3306;user=root;password=123456;database=Employee" MySql.Data.EntityFrameworkCore -OutputDir DataObjects -f

Read detail article
~~~~~~~~~~~~

#aspdotnetcore #aspdotnetpols #dotnetcore
Рекомендации по теме
Комментарии
Автор

sir i wnated to ask while connecting i got this errorUnable to resolve service for type while attempting to activate how to solve this error what can we do

mahirrehman
Автор

After paste this command in package manager.. Supply value for the following parameters:
Provider:

Please tell me what I do

urnpgcd
Автор

It still gives me error with the 3.1.10 version saying 'the given key '10536' was not present in the dictionary'. I am having a very hard time connecting to mariadb can you please advice.

uzbanasir
Автор

If you speak a bit slower we can actually understand something.

woistdasniveau
Автор

Hi I am having an error of Exception has been thrown by the target of an invocation."". Can you please help. Thanks in advance

kushpatel
Автор

Key is not supported ' dataase' I got this after typing update- database

Kapsekalyan
visit shbcf.ru