/// <summary> /// Gets the by FKs. /// </summary> /// <param name="criteria">The criteria.</param> /// <returns>the first entity if any, otherwise null</returns> public Build GetByFKs(BuildQueryCriteriaByEntityReference criteria) { MSBuildLogsExtended.EntityContracts.QueryPredicateBuildByFKs <Build> _PrediacteByFKs = new MSBuildLogsExtended.EntityContracts.QueryPredicateBuildByFKs <Build>(criteria); return(this.Single(_PrediacteByFKs.Predicate)); }
/// <summary> /// Gets the collection by FKs. /// </summary> /// <param name="criteria">The criteria.</param> /// <returns>a collection</returns> public BuildCollection GetCollectionByFKs(BuildQueryCriteriaByEntityReference criteria) { MSBuildLogsExtended.EntityContracts.QueryPredicateBuildByFKs <Build> _PrediacteByFKs = new MSBuildLogsExtended.EntityContracts.QueryPredicateBuildByFKs <Build>(criteria); return(new BuildCollection(this.Where(_PrediacteByFKs.Predicate))); }
/// <summary> /// Existses the by FKs. /// </summary> /// <param name="criteria">The criteria.</param> /// <returns>true if any, otherwise false</returns> public bool ExistsByFKs(BuildQueryCriteriaByEntityReference criteria) { MSBuildLogsExtended.EntityContracts.QueryPredicateBuildByFKs <Build> _PrediacteByFKs = new MSBuildLogsExtended.EntityContracts.QueryPredicateBuildByFKs <Build>(criteria); return(this.Count(_PrediacteByFKs.Predicate) > 0); }