Skip to content

Commit 3148d9f

Browse files
Maurits MoeysMaurits Moeys
Maurits Moeys
authored and
Maurits Moeys
committed
chore: styling
1 parent 95974a6 commit 3148d9f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/JsonApiDotNetCore/Internal/TypeHelper.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@ public static Dictionary<RelationshipAttribute, HashSet<TValueOut>> ConvertRelat
151151
return relationships.ToDictionary(pair => pair.Key, pair => (HashSet<TValueOut>)pair.Value);
152152
}
153153

154-
public static Dictionary<PropertyInfo, HashSet<TValueOut>> ConvertAttributesToUpdate<TValueOut>(Dictionary<AttrAttribute, object> attributes, HashSet<TValueOut> entities)
154+
/// <summary>
155+
/// Converts a dictionary of AttrAttributes to the underlying PropertyInfo that is referenced
156+
/// </summary>
157+
/// <param name="attributes"></param>
158+
/// <param name="entities"></param>
159+
public static Dictionary<PropertyInfo, HashSet<TValueOut>> ConvertAttributeDictionary<TValueOut>(Dictionary<AttrAttribute, object> attributes, HashSet<TValueOut> entities)
155160
{
156161
return attributes?.ToDictionary(p => p.Key.PropertyInfo, p => entities);
157162
}

0 commit comments

Comments
 (0)