dotnet-cqrs/OpenHarbor.CQRS.DynamicQuery.AspNetCore/DynamicQueryAggregate.cs

22 lines
428 B
C#
Raw Normal View History

using PoweredSoft.DynamicQuery;
using PoweredSoft.DynamicQuery.Core;
using System;
namespace OpenHarbor.CQRS.DynamicQuery.AspNetCore;
public class DynamicQueryAggregate
{
public string Path { get; set; }
public string Type { get; set; }
public IAggregate ToAggregate()
{
return new Aggregate
{
Type = Enum.Parse<AggregateType>(Type),
Path = Path
};
}
}