i am trying to excecute a linq query. In the Linq query i am selecting values from a view. This is the code in my webservice:
[WebMethod]
public XmlDocument HelloWorld()
{
DatawarehouseDataContext db = new DatawarehouseDataContext();
XElement xml =
new XElement("xmltag",
from p in db.vTurnoverInternetAndResellerInPeriods
select p.Internet_Sales);
XmlDocument doc = new XmlDocument();
doc.Load(xml.CreateReader());
return doc;
}
I added the view i am using to my Linq to classes DMBL. Also i don't get any errors in the code.
but when i run this, i don't get any result. the webpage just keeps loading. I am very new to LinQ, so can someone please help me?