public RoadwayContext Create()
        {
            var options = new DbContextOptionsBuilder <RoadwayContext>()
                          .UseInMemoryDatabase(databaseName: "RoadwayTest")
                          .Options;
            var dbContext = new RoadwayContext(options);

            return(dbContext);
        }
Пример #2
0
 public BrandRepository(RoadwayContext context) : base(context)
 {
 }
Пример #3
0
 /// <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;
 }