Code cleanup

This commit is contained in:
Irvine Sunday 2021-04-27 11:19:05 +03:00
parent 206e9a4129
commit 02188d079d
2 changed files with 2 additions and 4 deletions

View file

@ -29,13 +29,11 @@ namespace Microsoft.OpenApi.OData.Operation
if (IsNavigationPropertyPath)
{
operation.Summary = $"Get media content for the navigation property {NavigationProperty.Name} from {NavigationSource.Name}";
// description = Context.Model.GetDescriptionAnnotation(NavigationProperty);
}
else
{
IEdmEntityType entityType = EntitySet.EntityType();
operation.Summary = $"Get media content for {entityType.Name} from {EntitySet.Name}";
// description = Context.Model.GetDescriptionAnnotation(entityType);
}
// Description

View file

@ -32,8 +32,8 @@ namespace Microsoft.OpenApi.OData.Operation
}
else
{
IEdmEntityType entityType = EntitySet.EntityType();
operation.Summary = $"Update media content for {entityType.Name} in {EntitySet.Name}";
string typeName = EntitySet.EntityType().Name;
operation.Summary = $"Update media content for {typeName} in {EntitySet.Name}";
}
// Description