PDA

View Full Version : مشکل در entity framework codefirst



alireza70
سه شنبه 05 اسفند 1393, 10:29 صبح
سلام
من میخوام با code first یه جدول بسازم که کلید اصلیش کلیدهای خارجی سه تا جدول دیگس. موقع ساختن این خطا رو بهم میده.
اسم جدول هام : PatientوPatientsIllnesssخطا:
Patient_PatientsIllnesss_Target: : Multiplicity is not valid in Role 'Patient_PatientsIllnesss_Target' in relationship 'Patient_PatientsIllnesss'. Because the Dependent Role refers to the key properties, the upper bound of the multiplicity of the Dependent Role must be '1'.

En_MK
پنج شنبه 07 اسفند 1393, 20:13 عصر
مثل ینکه طراحی دیتابیستون مشکل داره
من خودم این ارور را تابه حال نداشتم اما سرچ کردم اینجوری متوجه شدم
لینک1 (http://stackoverflow.com/questions/17071580/one-to-many-relationship-mapping-returns-validation-errors)
لینک2 (http://stackoverflow.com/questions/1761362/entity-framework-one-to-one-mapping-issues)
لینک3 (http://stackoverflow.com/questions/19276381/multiplicity-not-allowed-entity-framework)