/// <summary>
 /// Constructs a typed EntityQuery for a single entity based on this EntityKey.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public EntityQuery <T> ToQuery <T>()
 {
     return((EntityQuery <T>)EntityQueryBuilder.BuildQuery(this));
 }
 /// <summary>
 /// Constructs an untyped EntityQuery for a single entity based on this EntityKey.
 /// </summary>
 /// <returns></returns>
 public EntityQuery ToQuery()
 {
     return(EntityQueryBuilder.BuildQuery(this));
 }