예제 #1
0
        public void Update(Session session)
        {
            t_session entity = _sqlRepository.Find(_ => _.SessionId == session.SessionId).Single();

            entity.UpdateEntity(session);
            _sqlRepository.Commit();
        }
예제 #2
0
 public static t_session UpdateEntity(this t_session entity, Session session)
 {
     entity.LaneNumber    = session.LaneNumber;
     entity.ShooterId     = session.ShooterId;
     entity.ProgramNumber = session.ProgramNumber;
     return(entity);
 }
예제 #3
0
        public void Create(Session session)
        {
            t_session entity = new t_session();

            entity.UpdateEntity(session);
            _sqlRepository.Insert(entity);
            session.SessionId = entity.SessionId;
        }
예제 #4
0
        public void Delete(Session session)
        {
            t_session entity = _sqlRepository.Find(_ => _.SessionId == session.SessionId).Single();

            _sqlRepository.Delete(entity);
        }