Generate Entity Data Model from Data Contract
- by CSmooth.net
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?