static void Main(string[] args) { var cache = new CacheService(); cache.Set(new CacheKeyBuilder("demo"), "my data"); var data = cache.Get(new CacheKeyBuilder("demo")); Console.ReadKey(); var context = new DataContext(); var test = context.Categories.ToList(); }
public List<Page> GetALL() { var context = new DataContext(); return context.Pages.ToList(); }
public void Get_all_listing() { var context = new DataContext(); var results = context.ListingItems.ToList().Where(x=>x.Listing.Name =="Test"); var map = new ItemMapper<People>(); var result = map.Map(new People(), results.ToList()); }