示例#1
0
        public void Update(Shot shot)
        {
            t_shot entity = _sqlRepository.Find(_ => _.ShotId == shot.ShotId).Single();

            entity.UpdateEntity(shot);
            _sqlRepository.Commit();
        }
示例#2
0
        public void Create(Shot shot)
        {
            t_shot entity = new t_shot();

            entity.UpdateEntity(shot);
            _sqlRepository.Insert(entity);
            shot.ShotId = entity.ShotId;
        }