Skip to content

Commit 31e5ce7

Browse files
authored
Merge pull request #5 from sschau/patch-1
Update PropertyMetadata.cs
2 parents 7dfce69 + ca39fe3 commit 31e5ce7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/IdentityManager2/Core/Metadata/PropertyMetadata.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public static PropertyMetadata FromFunctions<TContainer, TProperty>(
4949

5050
var meta = new ExpressionPropertyMetadata<TContainer, TProperty>(name, get, set);
5151
if (name != null) meta.Type = name;
52+
if (displayName != null) meta.Name = displayName;
5253
if (dataType != null) meta.DataType = dataType.Value;
5354
if (required != null) meta.Required = required.Value;
5455

@@ -69,6 +70,7 @@ public static PropertyMetadata FromFunctions<TContainer, TProperty>(
6970

7071
var meta = new AsyncExpressionPropertyMetadata<TContainer, TProperty>(name, get, set);
7172
if (name != null) meta.Type = name;
73+
if (displayName != null) meta.Name = displayName;
7274
if (dataType != null) meta.DataType = dataType.Value;
7375
if (required != null) meta.Required = required.Value;
7476

@@ -195,4 +197,4 @@ public static IEnumerable<PropertyMetadata> FromType(Type type, params string[]
195197
return props;
196198
}
197199
}
198-
}
200+
}

0 commit comments

Comments
 (0)