コード例 #1
0
        public void Test(string startsWith, string endsWith)
        {
            ISqlRepository repo = new SqlRepository("sqlDefaultConnection2");

            var branches = repo.GetAll<Branche>();
            var branch = repo.FindSingle<Branche>(b => b.Id == 1);
            branches = repo.Find<Branche>(b => b.Address2.EndsWith(endsWith) && b.Name == "البيداء");
            branches = repo.Find<Branche>(b => b.Address2.StartsWith(startsWith));
            branches = repo.Find<Branche>(b => b.Address2 == null);
        }
コード例 #2
0
 public Shot FindById(int id)
 {
     return(_sqlRepository.Find(_ => _.ShotId == id).Select(_selector).Single());
 }
コード例 #3
0
        public ShooterCollection FindById(int id)
        {
            ShooterCollection result = _sqlRepository.Find(_ => _.ShooterCollectionId == id).Select(_selector).Single();

            return(result);
        }
コード例 #4
0
 public SubSession FindById(int id)
 {
     return(_sqlRepository.Find(_ => _.SessionSubtotalId == id).Select(_selector).Single());
 }
コード例 #5
0
 public ShooterParticipation FindById(int id)
 {
     return(_sqlRepository.Find(_ => _.ShooterParticipationId == id).Select(_selector).Single());
 }
コード例 #6
0
 internal virtual T Get(Guid id)
 {
     return(Repository.Find(e => e.Id == id).SingleOrDefault());
 }
コード例 #7
0
 public CollectionShooter FindById(int id)
 {
     return(_sqlRepository.Find(_ => _.CollectionShooterId == id).Select(_selector).Single());
 }
コード例 #8
0
 public ShooterNumberConfig FindById(int id)
 {
     return(_sqlRepository.Find(_ => _.ShooterNumberConfigId == id).Select(_selector).Single());
 }
コード例 #9
0
 public Person FindById(int id)
 {
     return(_sqlRepository.Find(_ => _.PersonId == id).Select(_selector).Single());
 }