Splet12. dec. 2012 · To solve this issue, you need to proceed into two steps. The select to get the list of id must be done outside Linq To Entity. This way, the code will be executed as Linq to Object and won't affect Entity Framework. 1 var arrayId = listMyClass.Select (d => d.ID).ToArray (); SpletThe mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'UserProfile'. Previously found CLR type ' MVC4_EF4.EF_Data.UserProfile ', newly found CLR type ' MVC4_EF4.Models.UserProfile '." This seems to be an age old problem with EF. Here is a forum post discussing it .
EF5 Mapping of CLR type to EDM type is ambiguous error
Splet12. dec. 2012 · 1 var fromDatabase =_dataContext.Set ().Where (p => listMyClass.Select (d => d.ID).Contains (p.ID)); This won't work because listMyClass … Splet25. dec. 2024 · The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type. My question is regarding how my application should change … simple repeat sign
The mapping of CLR type to EDM type is ambiguous because …
Splet24. okt. 2024 · The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'district' Archived Forums 1-20 > ADO.NET Entity Framework … Splet08. dec. 2024 · By default, Web API has the following mapping between CLR types and Edm types: We should provide a methodology to map System.DateTime to Edm.Date type, and System.TimeSpan to Edm.TimeOfDay type as follows: Extension methods We will add the following extension methods to re-configure System.DateTime & System.TimeSpan … Splet15. sep. 2024 · The EDM does not define the semantics of operations or conversions over primitive data types; these semantics are defined by the storage or hosting environment. Typically, primitive data types in the EDM are mapped to corresponding primitive data types in the storage or hosting environment. simple reported speech