basic query and mutation discovery, next dynamic queries get added through extensions :)

This commit is contained in:
David Lebee
2021-02-03 19:51:23 -05:00
parent bd1b948a19
commit afb8b534bb
14 changed files with 258 additions and 10 deletions
@@ -33,5 +33,19 @@ namespace PoweredSoft.CQRS.Abstractions.Discovery
public virtual Type CommandType { get; }
public virtual Type ServiceType { get; }
public virtual Type CommandResultType { get; }
public string LowerCamelCaseName
{
get
{
if (string.IsNullOrEmpty(Name))
return Name;
var name = Name;
var firstLetter = Char.ToLowerInvariant(name[0]);
var ret = $"{firstLetter}{name.Substring(1)}";
return ret;
}
}
}
}
@@ -8,5 +8,6 @@ namespace PoweredSoft.CQRS.Abstractions.Discovery
Type CommandType { get; }
Type ServiceType { get; }
Type CommandResultType { get; }
string LowerCamelCaseName { get; }
}
}
@@ -12,5 +12,6 @@ namespace PoweredSoft.CQRS.Abstractions.Discovery
Type ServiceType { get; }
Type QueryResultType { get; }
string Category { get; }
string LowerCamelCaseName { get; }
}
}
@@ -28,5 +28,19 @@ namespace PoweredSoft.CQRS.Abstractions.Discovery
public virtual Type ServiceType { get; }
public virtual Type QueryResultType { get; }
public virtual string Category => "BasicQuery";
public string LowerCamelCaseName
{
get
{
if (string.IsNullOrEmpty(Name))
return Name;
var name = Name;
var firstLetter = Char.ToLowerInvariant(name[0]);
var ret = $"{firstLetter}{name.Substring(1)}";
return ret;
}
}
}
}