Linq 绑定数据
var p=from a in ee.Elements(“i”) from new MABCDE
{
id=a.id,
name=a.name
}
public struct MABCDE
{
[column(Name=”id”)]
public int id
{
get;
set;
}
[column(Name=”name”)]
public string name
{
get;
set;
}
}
一定要加 GET SET 否则不识别