コード例 #1
0
        public void Update(SubSession sessionSubtotal)
        {
            t_sessionsubtotal entity =
                _sqlRepository.Find(_ => _.SessionSubtotalId == sessionSubtotal.SessionSubtotalId).Single();

            entity.UpdateEntity(sessionSubtotal);
            _sqlRepository.Commit();
        }
コード例 #2
0
        public void Create(SubSession sessionSubtotal)
        {
            t_sessionsubtotal entity = new t_sessionsubtotal();

            entity.UpdateEntity(sessionSubtotal);
            _sqlRepository.Insert(entity);
            sessionSubtotal.SessionSubtotalId = entity.SessionSubtotalId;
        }