| | | 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> |
| | | 10 | | : ISpecificationBuilder<T, TResult>, IIncludableSpecificationBuilder<T, TProperty> where T : class |
| | | 11 | | { |
| | | 12 | | } |
| | | 13 | | |
| | | 14 | | /// <summary> |
| | | 15 | | /// Represents a specification builder that supports include operations. |
| | | 16 | | /// </summary> |
| | | 17 | | /// <typeparam name="T">The type of the entity.</typeparam> |
| | | 18 | | /// <typeparam name="TProperty">The type of the property.</typeparam> |
| | | 19 | | public interface IIncludableSpecificationBuilder<T, out TProperty> |
| | | 20 | | : ISpecificationBuilder<T> where T : class |
| | | 21 | | { |
| | | 22 | | } |
| | | 23 | | |
| | | 24 | | internal class IncludableSpecificationBuilder<T, TResult, TProperty>(Specification<T, TResult> specification) |
| | | 25 | | : SpecificationBuilder<T, TResult>(specification), IIncludableSpecificationBuilder<T, TResult, TProperty> where T : |
| | | 26 | | { |
| | | 27 | | } |
| | | 28 | | |
| | | 29 | | internal class IncludableSpecificationBuilder<T, TProperty>(Specification<T> specification) |
| | 110 | 30 | | : SpecificationBuilder<T>(specification), IIncludableSpecificationBuilder<T, TProperty> where T : class |
| | | 31 | | { |
| | | 32 | | } |