سلام . من در مورد ورژن 3.1 چون خودم انجام دادم میدونم که میشه ! کلا اگه نخای با Entity Frame Work Core کار کنی و بخای Dapper یا Ado.net برای ارتباط با دیتا بیس کار کنی مجبوری DataBase First پیش بری.
من این کار کردم برای ارتباط با mySQL به شیوه DbFirst:
mysql-for-visualstudio-1.2.9 , و بعدش mysql-connector-net-8.0.19 را نصب کردم تا با Vs2019 مرتبط بشم.
سپس کد زیر را در قسمت نیوگت کنسول اجرا میکنیم:
PM> scaffold-Dbcontext "server=localhost;userid=root;password=123456;data base=accounting_db; " Pomelo.EntityFrameworkCore.MySql -OutputDir Models
فقط Entity Frame Work با View های درون دیتابیس مشکل داره
Note: EF Core creates entity classes only for tables and not for StoredProcedures or Views.
Note: Once you have created the model, you must use the Migration commands whenever you change the model to keep the database up to date with the model.
جواب نهایی:بله