Generate Entity Data Model from Data Contract

Posted by CSmooth.net on Stack Overflow See other posts from Stack Overflow or by CSmooth.net
Published on 2010-04-20T19:41:04Z Indexed on 2010/04/20 19:43 UTC
Read the original article Hit count: 463

I would like to find a fast way to convert a Data Contract to a Entity Data Model.

Consider the following Data Contract:

[DataContract]
class PigeonHouse
{
    [DataMember]
    public string housename;
    [DataMember]
    public List<Pigeon> pigeons;
}

[DataContract]
class Pigeon
{
    [DataMember]
    public string name;
    [DataMember]
    public int numberOfWings;
    [DataMember]
    public int age;
}

Is there an easy way to create an ADO.NET Entity Data Model from this code?

© Stack Overflow or respective owner

Related posts about ado.net-entity-data-model