IMongoQueryable.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Copyright 2015-present MongoDB Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. using System.Linq;
  16. using MongoDB.Bson.Serialization;
  17. namespace MongoDB.Driver.Linq
  18. {
  19. /// <summary>
  20. /// Provides functionality to evaluate queries against MongoDB.
  21. /// </summary>
  22. public interface IMongoQueryable : IQueryable
  23. {
  24. /// <summary>
  25. /// Gets the execution model.
  26. /// </summary>
  27. /// <returns>
  28. /// The execution model.
  29. /// </returns>
  30. QueryableExecutionModel GetExecutionModel();
  31. }
  32. /// <summary>
  33. /// Provides functionality to evaluate queries against MongoDB
  34. /// wherein the type of the data is known.
  35. /// </summary>
  36. /// <typeparam name="T">
  37. /// The type of the data in the data source.
  38. /// This type parameter is covariant.
  39. /// That is, you can use either the type you specified or any type that is more
  40. /// derived. For more information about covariance and contravariance, see Covariance
  41. /// and Contravariance in Generics.
  42. /// </typeparam>
  43. public interface IMongoQueryable<T> : IMongoQueryable, IQueryable<T>, IAsyncCursorSource<T>
  44. {
  45. }
  46. /// <summary>
  47. /// Represents the result of a sorting operation.
  48. /// </summary>
  49. /// <typeparam name="T">
  50. /// The type of the data in the data source.
  51. /// This type parameter is covariant.
  52. /// That is, you can use either the type you specified or any type that is more
  53. /// derived. For more information about covariance and contravariance, see Covariance
  54. /// and Contravariance in Generics.
  55. /// </typeparam>
  56. public interface IOrderedMongoQueryable<T> : IMongoQueryable<T>, IOrderedQueryable<T>
  57. {
  58. }
  59. }