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); }
public Shot FindById(int id) { return(_sqlRepository.Find(_ => _.ShotId == id).Select(_selector).Single()); }
public ShooterCollection FindById(int id) { ShooterCollection result = _sqlRepository.Find(_ => _.ShooterCollectionId == id).Select(_selector).Single(); return(result); }
public SubSession FindById(int id) { return(_sqlRepository.Find(_ => _.SessionSubtotalId == id).Select(_selector).Single()); }
public ShooterParticipation FindById(int id) { return(_sqlRepository.Find(_ => _.ShooterParticipationId == id).Select(_selector).Single()); }
internal virtual T Get(Guid id) { return(Repository.Find(e => e.Id == id).SingleOrDefault()); }
public CollectionShooter FindById(int id) { return(_sqlRepository.Find(_ => _.CollectionShooterId == id).Select(_selector).Single()); }
public ShooterNumberConfig FindById(int id) { return(_sqlRepository.Find(_ => _.ShooterNumberConfigId == id).Select(_selector).Single()); }
public Person FindById(int id) { return(_sqlRepository.Find(_ => _.PersonId == id).Select(_selector).Single()); }