如何将实体Object转换为数据集

如何将实体Object转换为数据集

问题描述:

public Client Get(int ClientID)

{

客户端客户端= null;

DataSet ds = this.dataservice.Get(ClientID );

返回客户;

}

public Client Get( int ClientID)
{
Client client = null;
DataSet ds =this.dataservice.Get(ClientID);
return client;
}

查看参考资料。

http:// blogs .msdn.com / b / swiss_dpe_team / archive / 2008/02/04 / linq-to-sql-returning-multiple-result-sets.aspx [ ^ ]

http:// weblogs。 asp.net/scottgu/linq-to-sql-part-6-retrieving-data-using-stored-procedures [ ^ ]
see the references.
http://blogs.msdn.com/b/swiss_dpe_team/archive/2008/02/04/linq-to-sql-returning-multiple-result-sets.aspx[^]
http://weblogs.asp.net/scottgu/linq-to-sql-part-6-retrieving-data-using-stored-procedures[^]