示例#1
0
        public RepositoryTest()
        {
            var optionsBuilder = new DbContextOptionsBuilder();

            optionsBuilder.UseInMemoryDatabase("repository_test");
            _context    = new HappyShareContext(optionsBuilder.Options);
            _repository = new Repository <User>(_context);
        }
示例#2
0
 public Repository(HappyShareContext happyShareContext)
 {
     HappyShareContext = happyShareContext;
 }
示例#3
0
 public UserRepository(HappyShareContext happyShareContext) : base(happyShareContext)
 {
 }