سلام وقت بخیر خسته نباشید
من به هنگام اجرای دستور Add-Migration InitialDB به خطاهای زیر میخورم:
Your target project 'MyCrm.Web' doesn't match your migrations assembly 'MyCrm.Data'. Either change your target project or change your migrations assembly.
Change your migrations assembly by using DbContextOptionsBuilder. E.g. options.UseSqlServer(connection, b => b.MigrationsAssembly("MyCrm.Web")). By default, the migrations assembly is the assembly containing the DbContext.
Change your target project to the migrations project by using the Package Manager Console's Default project drop-down list, or by executing "dotnet ef" from the directory containing the migrations project.
ممنون میشم راهنمایی کنید.
سلام دوباره، حل شد اشکال من در عدم انتخاب پروژه درست بود بایستی پروژه MyCrm.Data رو انتخاب کنیم تا عملیات درست انجام پذیرد.
با تشکر