2018-10-22 21:21:14 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
namespace PoweredSoft.DynamicQuery.Test.Mock
|
|
|
|
|
{
|
|
|
|
|
public class MockContext : DbContext
|
|
|
|
|
{
|
|
|
|
|
public virtual DbSet<Customer> Customers { get; set; }
|
|
|
|
|
public virtual DbSet<Item> Items { get; set; }
|
|
|
|
|
public virtual DbSet<Order> Orders { get; set; }
|
|
|
|
|
public virtual DbSet<OrderItem> OrderItems { get; set; }
|
2018-11-15 20:42:30 -05:00
|
|
|
|
public virtual DbSet<Ticket> Tickets { get; set; }
|
2018-10-22 21:21:14 -04:00
|
|
|
|
|
|
|
|
|
public MockContext()
|
|
|
|
|
{
|
2018-10-22 22:05:23 -04:00
|
|
|
|
|
2018-10-22 21:21:14 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public MockContext(DbContextOptions<MockContext> options)
|
|
|
|
|
: base(options)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|