avatar
Roholah Mosavi

کاربر

  • 1402/12/16
  • 0
  • 218
1402/12/16 |
dot-net

Seed ComplexTypes In Ef Core

سلام خدمت شما استاد بابایی .

 

هنگام migration کردن دیتا بیس با ef core با این خطا روبرو میشم :

Unable to create a 'DbContext' of type 'AssistantDBContext'. The exception 'The seed entity for entity type 'ContractMainType' cannot be added because it has the complex property 'Rate' set. Complex properties are currently not supported in seeding

و میگه که seed کردن مقادیر complex Type پشتیبانی نمیشه !!!

در حالی که در ef به راحتی complex type ها seed میشن

چکار کنم ؟



پاسخی برای این باگ ارسال کنید

لطفا کدها را درون قطعه کد ارسال نمایید

برای ارسال پاسخ باید وارد حساب کاربری خود شوید
ورود به حساب کاربری