/// <summary>
 /// Gets the by FKs.
 /// </summary>
 /// <param name="criteria">The criteria.</param>
 /// <returns>the first entity if any, otherwise null</returns>
 public BuildLog GetByFKs(BuildLogQueryCriteriaByEntityReference criteria)
 {
     MSBuildExtensionPack.EntityContracts.QueryPredicateBuildLogByFKs <BuildLog> _PrediacteByFKs = new MSBuildExtensionPack.EntityContracts.QueryPredicateBuildLogByFKs <BuildLog>(criteria);
     return(this.Single(_PrediacteByFKs.Predicate));
 }
 /// <summary>
 /// Gets the collection by FKs.
 /// </summary>
 /// <param name="criteria">The criteria.</param>
 /// <returns>a collection</returns>
 public BuildLogCollection GetCollectionByFKs(BuildLogQueryCriteriaByEntityReference criteria)
 {
     MSBuildExtensionPack.EntityContracts.QueryPredicateBuildLogByFKs <BuildLog> _PrediacteByFKs = new MSBuildExtensionPack.EntityContracts.QueryPredicateBuildLogByFKs <BuildLog>(criteria);
     return(new BuildLogCollection(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(BuildLogQueryCriteriaByEntityReference criteria)
 {
     MSBuildExtensionPack.EntityContracts.QueryPredicateBuildLogByFKs <BuildLog> _PrediacteByFKs = new MSBuildExtensionPack.EntityContracts.QueryPredicateBuildLogByFKs <BuildLog>(criteria);
     return(this.Count(_PrediacteByFKs.Predicate) > 0);
 }