专家:net_lover:泛型实体集合如何生成schema?
定义实体:
[Serializable()]
public class Entity
{
public Entity()
{
}
public Entity(string a, float b)
{
this.a = a;
this.b = b;
}
string a;
float b;
public string A
{
get { return a; }
set { this.a = value; }
}
public float B
{
get { return b; }
set { this.b = value; }
}
}
生成泛型实体集
List<Entity> list = new List<Entity>();
list.Add(new Entity("aaa", 1));
list.Add(new Entity("bbb", 2));
list.Add(new Entity("ccc", 3));
想要得到此实体集合的Schema,谢谢。