示例#1
0
 public Customer GetById(int id)
 {
     return(_context.Customers
            .Include(c => c.AddressList)
            .Include(c => c.CreditCardList)
            .FirstOrDefault(CustomerQueries.GetById(id)));
 }