Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
the virtual property of my list values getting below error .

CloudinaryImageURLsData is a Virtual Property

        public virtual CloudinaryImageURLsData CloudinaryImageURLsData { get; set; }




A relationship multiplicity constraint violation occurred: An EntityReference can have no more than one related object, but the query returned more than one related object. This is a non-recoverable error.


What I have tried:

var res = (from a in vendorList
           join b in result on a.VendorId equals b.HotelCode
           select new HotelVendor { VendorId = a.VendorId, VendorName = a.VendorName, Address = a.Address, CloudinaryImageURLsData = a.CloudinaryImageURLsData, Country = a.Country, WeekEnd_Rank = a.WeekEnd_Rank }).ToList();


thanks .
Posted
Comments
RmcbainTheThird 11-Jun-19 7:44am    
So when you run that query raw in the db what do you get back?(pet peeve #1 about linq)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900