This commit is contained in:
2025-11-03 07:44:17 -05:00
parent d2a4639c0e
commit a0426aa0d1
13 changed files with 98 additions and 12 deletions
@@ -13,6 +13,8 @@ namespace Svrnty.CQRS.Grpc.Generators.Models
public string? ResultFullyQualifiedName { get; set; }
public bool HasResult => ResultType != null;
public string HandlerInterfaceName { get; set; }
public List<PropertyInfo> ResultProperties { get; set; }
public bool IsResultPrimitiveType { get; set; }
public CommandInfo()
{
@@ -21,6 +23,8 @@ namespace Svrnty.CQRS.Grpc.Generators.Models
Namespace = string.Empty;
Properties = new List<PropertyInfo>();
HandlerInterfaceName = string.Empty;
ResultProperties = new List<PropertyInfo>();
IsResultPrimitiveType = false;
}
}
@@ -28,6 +32,7 @@ namespace Svrnty.CQRS.Grpc.Generators.Models
{
public string Name { get; set; }
public string Type { get; set; }
public string FullyQualifiedType { get; set; }
public string ProtoType { get; set; }
public int FieldNumber { get; set; }
@@ -35,6 +40,7 @@ namespace Svrnty.CQRS.Grpc.Generators.Models
{
Name = string.Empty;
Type = string.Empty;
FullyQualifiedType = string.Empty;
ProtoType = string.Empty;
}
}
@@ -11,6 +11,8 @@ namespace Svrnty.CQRS.Grpc.Generators.Models
public string ResultType { get; set; }
public string ResultFullyQualifiedName { get; set; }
public string HandlerInterfaceName { get; set; }
public List<PropertyInfo> ResultProperties { get; set; }
public bool IsResultPrimitiveType { get; set; }
public QueryInfo()
{
@@ -21,6 +23,8 @@ namespace Svrnty.CQRS.Grpc.Generators.Models
ResultType = string.Empty;
ResultFullyQualifiedName = string.Empty;
HandlerInterfaceName = string.Empty;
ResultProperties = new List<PropertyInfo>();
IsResultPrimitiveType = false;
}
}
}