5 mai 2008

Wcf Datacontract error with Linq

Erreur:
"Type System.Data.Objects.Entity' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute."

Pour résoudre l'erreur, ajouter l'attribut [DataContract()] dans le designer du fichier dbml pour chaque objets.

Aucun commentaire: