- Add nullable annotations across discovery interfaces, dynamic query models, and filter/aggregate types to eliminate CS8600-series warnings - Replace unsafe cast in DynamicQueryHandlerBase with pattern match - Add CI workflow (build --warnaserror + test on JP branch) - Add weekly security vulnerability scan workflow - Extend .gitignore with secret/credential patterns (.env, *.key, secrets/, credentials.json) Co-Authored-By: Svrnty Inc. <eng@svrnty.com>
22 lines
428 B
C#
22 lines
428 B
C#
using PoweredSoft.DynamicQuery;
|
|
using PoweredSoft.DynamicQuery.Core;
|
|
using System;
|
|
|
|
namespace Svrnty.CQRS.DynamicQuery;
|
|
|
|
public class DynamicQueryAggregate
|
|
{
|
|
public required string Path { get; set; }
|
|
public required string Type { get; set; }
|
|
|
|
public IAggregate ToAggregate()
|
|
{
|
|
return new Aggregate
|
|
{
|
|
Type = Enum.Parse<AggregateType>(Type),
|
|
Path = Path
|
|
};
|
|
}
|
|
|
|
}
|