public void Update(ShooterCollection shooterCollection)
        {
            t_shootercollection entity = _sqlRepository.Find(_ => _.ShooterCollectionId == shooterCollection.ShooterCollectionId).Single();

            entity.UpdateEntity(shooterCollection);
            _sqlRepository.Commit();
        }
        public void Create(ShooterCollection shooter)
        {
            t_shootercollection entity = new t_shootercollection();

            entity.UpdateEntity(shooter);
            _sqlRepository.Insert(entity);
            shooter.ShooterCollectionId = entity.ShooterCollectionId;
        }
 public static t_shootercollection UpdateEntity(this t_shootercollection entity, ShooterCollection shooterCollection)
 {
     entity.CollectionName = shooterCollection.CollectionName;
     entity.ProgramNumber  = shooterCollection.ProgramNumber;
     return(entity);
 }
        public void Delete(ShooterCollection shooterCollection)
        {
            t_shootercollection entity = _sqlRepository.Find(_ => _.ShooterCollectionId == shooterCollection.ShooterCollectionId).Single();

            _sqlRepository.Delete(entity);
        }