i want to fetch data from database using stored procedure in web service,
error is i am unable to fetch particular column data using foreach loop.
变量项没有任何列名。请帮我解决从SP获取数据的方法。
public string GetAllUniqueNumberBySP()
{
using (SoubhagyatechEntities dbcontext = new SoubhagyatechEntities())
{
var data = dbcontext.SP_getALLUniqueCode().ToList();
foreach (var item in data)
{
var s= item.assetmasterAssetUniqueId;
}
return s;
}
}