internal static List <ExtentKey> GetKeysForEntityType( MemberPath prefix, EntityType entityType) { return(new List <ExtentKey>() { ExtentKey.GetPrimaryKeyForEntityType(prefix, entityType) }); }
internal static ExtentKey GetKeyForRelationType( MemberPath prefix, AssociationType relationType) { List <MemberPath> memberPathList = new List <MemberPath>(); foreach (AssociationEndMember associationEndMember in relationType.AssociationEndMembers) { ExtentKey keyForEntityType = ExtentKey.GetPrimaryKeyForEntityType(new MemberPath(prefix, (EdmMember)associationEndMember), MetadataHelper.GetEntityTypeForEnd(associationEndMember)); memberPathList.AddRange(keyForEntityType.KeyFields); } return(new ExtentKey((IEnumerable <MemberPath>)memberPathList)); }