src/Simple.OData.Client.V4.Adapter/Metadata.cs
/// <summary>
/// Gets a collection of key name collections that represent the alternate keys of the given entity
/// </summary>
/// <see cref="https://github.com/OData/vocabularies/blob/master/OData.Community.Keys.V1.md"/>
/// <param name="collectionName">The collection name of the entity</param>
/// <returns>An enumeration of string enumerations representing the key names</returns>
Gets a collection of key name collections that represent the alternate keys of the given entity
Gets a collection of key name collections that represent the alternate keys of the given entity
public override IEnumerable<IEnumerable<string>> GetAlternateKeyPropertyNames(string collectionName)
	{
		var entityType = GetEntityType(collectionName);
		return _model.GetAlternateKeysAnnotation(entityType)
			.Select(x => x.Select(y => y.Key));
	}
public override IEnumerable < IEnumerable < string > > GetAlternateKeyPropertyNames ( string collectionName ) { var entityType = GetEntityType ( collectionName ) ; return _model . GetAlternateKeysAnnotation ( entityType ) . Select ( x => x . Select ( y => y . Key ) ) ; }
Gets a collection of key name collections that represent the alternate keys of the given entity
Gets a collection of key name collections that represent the alternate keys of the given entity
An enumeration of string enumerations representing the key names
An enumeration of string enumerations representing the key names
collectionName
string
The collection name of the entity
The collection name of the entity
see
None