0
我有「源」類和「目的地」類:AutoMapper:轉換一棵樹到實體列表
public class ActionSource
{
public string Action { get; set; }
public IEnumerable<PlaceSource> Places { get; set; }
}
public class PlaceSource
{
public string Place { get; set; }
public IEnumerable<EventSource> Events { get; set; }
}
public class EventSource
{
public string Event { get; set; }
}
public class EventInfoDestination
{
public string Action { get; set; }
public string Place { get; set; }
public string Event { get; set; }
}
如何映射了ActionSource數據IEnumerable<EventInfoDestination>
與AutoMapper?
所以,謝謝。有了linq,我確實很容易 –