Created
March 7, 2014 16:00
-
-
Save mikecole/9414215 to your computer and use it in GitHub Desktop.
Automapper Multiple Sources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountSummaryViewModel | |
{ | |
//Comes from account | |
public int AccountID { get; set; } | |
public string AccountName { get; set; } | |
public DateTime ExpirationDate { get; set; } | |
//Comes from paymentInfo | |
public string PaymentMethod { get; set; } | |
//Comes from history | |
public IEnumerable<Transaction> Transactions { get; set; } | |
public class Transaction | |
{ | |
public int ID { get; set; } | |
public DateTime TransactionDate { get; set; } | |
public decimal Amount { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment