Je suit structure de la table:ADO.NET Entity: obtenir des données à partir de 3 tables
Table: Plant
PlantID: Primary Key
PlantName: String
Table: Party
PartyID: Primary Key
PartyName: String
PlantID: link to Plant table
Table: Customer
PartyID: Primary Key, link to Party
CustomerCode: String
Je voudrais avoir l'objet entité Client champs suivants:
PartyID: Primary Key
CustomerCode: String
PartyName: String
PlantName: String
Je ne parviens pas à avec le champ PlantName (qui provient de la table Plant J'ai connecté le client à la partie et Party to Plant avec les associations Cependant, je ne peux pas connecter le client à la plante avec l'association (parce qu'il n'en a pas) Je ne peux pas ajouter Pla tableau nt à la cartographie, quand je fais cela - je reçois erreur suivante:
Error 3024: Problem in Mapping Fragment starting at line 352: Must specify mapping for all key properties (CustomerSet.PartyID) of the EntitySet CustomerSet
Suppression de l'association de l'usine fonctionne. Des indices ou des directions très appréciés.
Avez-vous déjà trouver une solution à ce problème? Je rencontre la même chose. – ern
Avez-vous des clés étrangères dans votre schéma? – RobS