|
@@ -130,10 +130,10 @@ namespace InABox.Core
|
|
|
|
|
|
public static bool IsCalculated(this PropertyInfo prop)
|
|
|
{
|
|
|
- var aggregate = prop.GetCustomAttribute<AggregateAttribute>();
|
|
|
- var formula = prop.GetCustomAttribute<FormulaAttribute>();
|
|
|
- var result = aggregate != null || formula != null;
|
|
|
- return result;
|
|
|
+ return prop.GetCustomAttribute<AggregateAttribute>() != null
|
|
|
+ || prop.GetCustomAttribute<FormulaAttribute>() != null
|
|
|
+ || prop.GetCustomAttribute<ConditionAttribute>() != null
|
|
|
+ || prop.GetCustomAttribute<ComplexFormulaAttribute>() != null;
|
|
|
}
|
|
|
}
|
|
|
}
|