|
@@ -437,6 +437,8 @@ namespace InABox.Core
|
|
|
Property(type, name) ?? throw new PropertyNotFoundException(type, name);
|
|
|
public static IProperty PropertyStrict<T>(Expression<Func<T, object?>> expression) =>
|
|
|
Property(expression) ?? throw new PropertyNotFoundException(typeof(T), CoreUtils.GetFullPropertyName(expression, "."));
|
|
|
+ public static IProperty PropertyStrict<T, TType>(Expression<Func<T, TType>> expression) =>
|
|
|
+ Property(expression) ?? throw new PropertyNotFoundException(typeof(T), CoreUtils.GetFullPropertyName(expression, "."));
|
|
|
|
|
|
public class PropertyNotFoundException : Exception
|
|
|
{
|