Пример #1
0
 /// <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)
 {
     MSBuildExtensionPack.EntityContracts.QueryPredicateBuildByFKs <Build> _PrediacteByFKs = new MSBuildExtensionPack.EntityContracts.QueryPredicateBuildByFKs <Build>(criteria);
     return(this.Single(_PrediacteByFKs.Predicate));
 }
Пример #2
0
 /// <summary>
 /// Gets the collection by FKs.
 /// </summary>
 /// <param name="criteria">The criteria.</param>
 /// <returns>a collection</returns>
 public BuildCollection GetCollectionByFKs(BuildQueryCriteriaByEntityReference criteria)
 {
     MSBuildExtensionPack.EntityContracts.QueryPredicateBuildByFKs <Build> _PrediacteByFKs = new MSBuildExtensionPack.EntityContracts.QueryPredicateBuildByFKs <Build>(criteria);
     return(new BuildCollection(this.Where(_PrediacteByFKs.Predicate)));
 }
Пример #3
0
 /// <summary>
 /// Existses the by FKs.
 /// </summary>
 /// <param name="criteria">The criteria.</param>
 /// <returns>true if any, otherwise false</returns>
 public bool ExistsByFKs(BuildQueryCriteriaByEntityReference criteria)
 {
     MSBuildExtensionPack.EntityContracts.QueryPredicateBuildByFKs <Build> _PrediacteByFKs = new MSBuildExtensionPack.EntityContracts.QueryPredicateBuildByFKs <Build>(criteria);
     return(this.Count(_PrediacteByFKs.Predicate) > 0);
 }