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: 467
ado.net-entity-data-model
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