我有一種情況如下:LINQ的加入對象列表整數列表
Event:
public int EventId { get; set; }
public string EventName { get; set;}
MediaGallery:
public int MediaGalleryID { get; set; }
public string Name { get; set; }
public List<int> EventId { get; set;}
List<Event> eventList = query.Event.ToList();
List<MediaGallery> mediaGallreis = query.MediaGallery.ToList();
我需要檢索EVENTLIST是EVENTID存在MediaGallery的事件ID列表。 任何人都可以告訴我嗎?