zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Specifications/Builder/SpecificationBuilder.cs
2023-12-05 17:22:48 +08:00

13 lines
523 B
C#

namespace ZeroFramework.DeviceCenter.Domain.Specifications.Builder
{
public class SpecificationBuilder<T, TResult>(Specification<T, TResult> specification) : SpecificationBuilder<T>(specification), ISpecificationBuilder<T, TResult>
{
public new Specification<T, TResult> Specification { get; } = specification;
}
public class SpecificationBuilder<T>(Specification<T> specification) : ISpecificationBuilder<T>
{
public Specification<T> Specification { get; } = specification;
}
}