PDA

View Full Version : این خطا رو کسی میدونه به چی داره اشاره میکنه ؟because the materialized value is null



RIG000
سه شنبه 18 آذر 1393, 18:31 عصر
An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user code

Additional information: The cast to value type 'System.Int32' failed because the materialized value is null. Either the result type's generic parameter or the query must use a nullable type.
من دارم یه selectمیزنم که selectرو داره نال برمی گردونه ... در صورتی که نال نباید باشه چون شرط این دستور میتونه از جدول اطلاعات بکشه بیرون شرط هاش برقرار هست.......
اما مورد جالب اینه که null میده حالا دیگه چرابه null بودن گیر میدی ....!!! کلا یکی این ارور رو معنی کنه...

TeacherMath
جمعه 21 آذر 1393, 17:33 عصر
https://www.google.com/search?q=An+exception+of+type+%27System.InvalidOpe rationException%27+occurred+in+EntityFramework.dll +but+was+not+handled+in+user+code&oq=An+exception+of+type+%27System.InvalidOperation Exception%27+occurred+in+EntityFramework.dll+but+w as+not+handled+in+user+code&aqs=chrome..69i57&sourceid=chrome&es_sm=93&ie=UTF-8