|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Demo.Models.DataInterfaces;
using Demo.Models.Domain;
namespace Demo.DataMock
{
public class CustomerRepostiroy : Repository<Customer>, ICustomerRepository
{
public CustomerRepostiroy(Context context) : base(context) { }
public override IQueryable<Customer> All()
{
List<Customer> customers = new List<Customer>()
{
new Customer()
{
CustomerID = "First Book Store",
CompanyName = "The First Book Store in New York City",
Orders = new List<Order>()
{
new Order()
{
OrderID = 12345,
OrderDate = DateTime.Now
}
}
}
};
return customers.AsQueryable();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.