예제 #1
0
        public void DBEntityTest()
        {
            HYContext db;
            HYEntity  ent  = new HYEntity("TEST1");
            HYEntity  ent2 = null;

            try
            {
                using (db = new HYContext())
                {
                    var res = db.Entities.Add(ent);
                    db.SaveChanges();

                    ent2 = db.Entities.FirstOrDefaultAsync(a => a.Id == ent.Id).Result;
                }
            }
            catch (Exception e)
            {
                ent = null;
                _   = log.LogError(e);
            }

            Assert.IsNotNull(ent2);
        }
예제 #2
0
 public GameService(HYContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
예제 #3
0
 public PositionService(HYContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
예제 #4
0
 public Userservice(HYContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
예제 #5
0
 public PurchaseService(HYContext context)
 {
     _context = context;
 }
예제 #6
0
 public CurrencyService(HYContext context)
 {
     _context = context;
 }