| | 1 | | namespace Pozitron.QuerySpecification; |
| | 2 | |
|
| | 3 | | /// <summary> |
| | 4 | | /// Represents a specification builder that supports include operations. |
| | 5 | | /// </summary> |
| | 6 | | /// <typeparam name="T">The type of the entity.</typeparam> |
| | 7 | | /// <typeparam name="TResult">The type of the result.</typeparam> |
| | 8 | | /// <typeparam name="TProperty">The type of the property.</typeparam> |
| | 9 | | public interface IIncludableSpecificationBuilder<T, TResult, out TProperty> : ISpecificationBuilder<T, TResult> where T |
| | 10 | | { |
| | 11 | | } |
| | 12 | |
|
| | 13 | | /// <summary> |
| | 14 | | /// Represents a specification builder that supports include operations. |
| | 15 | | /// </summary> |
| | 16 | | /// <typeparam name="T">The type of the entity.</typeparam> |
| | 17 | | /// <typeparam name="TProperty">The type of the property.</typeparam> |
| | 18 | | public interface IIncludableSpecificationBuilder<T, out TProperty> : ISpecificationBuilder<T> where T : class |
| | 19 | | { |
| | 20 | | } |
| | 21 | |
|
| | 22 | | internal class IncludableSpecificationBuilder<T, TResult, TProperty>(Specification<T, TResult> specification) |
| | 23 | | : SpecificationBuilder<T, TResult>(specification), IIncludableSpecificationBuilder<T, TResult, TProperty> where T : |
| | 24 | | { |
| | 25 | | } |
| | 26 | |
|
| | 27 | | internal class IncludableSpecificationBuilder<T, TProperty>(Specification<T> specification) |
| 96 | 28 | | : SpecificationBuilder<T>(specification), IIncludableSpecificationBuilder<T, TProperty> where T : class |
| | 29 | | { |
| | 30 | | } |