mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 05:23:13 +00:00
flow
This commit is contained in:
@ -151,7 +151,7 @@ public class PropertyTemplate : MemberTemplate
|
||||
{
|
||||
var genericPropType = pi.PropertyType.IsGenericType ? pi.PropertyType.GetGenericTypeDefinition() : null;
|
||||
|
||||
var propType = genericPropType == typeof(DistributedPropertyContext<>) ?
|
||||
var propType = genericPropType == typeof(PropertyContext<>) ?
|
||||
RepresentationType.FromType(pi.PropertyType.GetGenericArguments()[0]) :
|
||||
RepresentationType.FromType(pi.PropertyType);
|
||||
|
||||
@ -174,7 +174,7 @@ public class PropertyTemplate : MemberTemplate
|
||||
//var nullableAttr = pi.GetCustomAttribute<NullableAttribute>(true);
|
||||
//var flags = ((byte[]) nullableAttr?.NullableFlags ?? new byte[0]).ToList();
|
||||
|
||||
if (nullableAttrFlags.Count > 0 && genericPropType == typeof(DistributedPropertyContext<>))
|
||||
if (nullableAttrFlags.Count > 0 && genericPropType == typeof(PropertyContext<>))
|
||||
nullableAttrFlags.RemoveAt(0);
|
||||
|
||||
if (nullableContextAttrFlag == 2)
|
||||
|
@ -191,7 +191,7 @@ public class TypeTemplate
|
||||
var genericTypeArgs = type.GetGenericArguments();
|
||||
|
||||
if (genericType == typeof(List<>)
|
||||
|| genericType == typeof(DistributedPropertyContext<>))
|
||||
|| genericType == typeof(PropertyContext<>))
|
||||
{
|
||||
return GetDistributedTypes(genericTypeArgs[0]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user