public RoadwayContext Create() { var options = new DbContextOptionsBuilder <RoadwayContext>() .UseInMemoryDatabase(databaseName: "RoadwayTest") .Options; var dbContext = new RoadwayContext(options); return(dbContext); }
public BrandRepository(RoadwayContext context) : base(context) { }
/// <summary> /// Initializes a new instance of the <see cref="BaseRepository{TEntity}"/> class. /// </summary> /// <param name="context"> /// The context. /// </param> protected BaseRepository( RoadwayContext context) { Context = context; }