File tree 2 files changed +3
-3
lines changed
Examples/DapperExample/TranslationToSql/Builders
JsonApiDotNetCore/Configuration
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ private TableAccessorNode CreatePrimaryTableWithIdentityCondition(TableSourceNod
436
436
private TableAccessorNode ? FindRelatedTable ( TableAccessorNode leftTableAccessor , RelationshipAttribute relationship )
437
437
{
438
438
Dictionary < RelationshipAttribute , TableAccessorNode > rightTableAccessors = _queryState . RelatedTables [ leftTableAccessor ] ;
439
- return rightTableAccessors . TryGetValue ( relationship , out TableAccessorNode ? rightTableAccessor ) ? rightTableAccessor : null ;
439
+ return rightTableAccessors . GetValueOrDefault ( relationship ) ;
440
440
}
441
441
442
442
private SelectNode ToSelect ( bool isSubQuery , bool createAlias )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public ResourceType GetResourceType(string publicName)
53
53
{
54
54
ArgumentGuard . NotNull ( publicName ) ;
55
55
56
- return _resourceTypesByPublicName . TryGetValue ( publicName , out ResourceType ? resourceType ) ? resourceType : null ;
56
+ return _resourceTypesByPublicName . GetValueOrDefault ( publicName ) ;
57
57
}
58
58
59
59
/// <inheritdoc />
@@ -75,7 +75,7 @@ public ResourceType GetResourceType(Type resourceClrType)
75
75
ArgumentGuard . NotNull ( resourceClrType ) ;
76
76
77
77
Type typeToFind = IsLazyLoadingProxyForResourceType ( resourceClrType ) ? resourceClrType . BaseType ! : resourceClrType ;
78
- return _resourceTypesByClrType . TryGetValue ( typeToFind , out ResourceType ? resourceType ) ? resourceType : null ;
78
+ return _resourceTypesByClrType . GetValueOrDefault ( typeToFind ) ;
79
79
}
80
80
81
81
private bool IsLazyLoadingProxyForResourceType ( Type resourceClrType )
You can’t perform that action at this time.
0 commit comments