I have this method which worked for a while
public string getSlotText(int slotID)
{
DataClasses1DataContext context = new DataClasses1DataContext();
var slotString = context.spGetSlotTextBySlotID(slotID);
return slotString.ElementAt(0).slotText;
}
But what i really want now is something like
public var getSlotText(int slotID)
{
DataClasses1DataContext context = new DataClasses1DataContext();
var slotString = context.spGetSlotTextBySlotID(slotID);
return slotString;
}
as slotString has more than one element within it. I saw some other examples but none with LINQ calling a sproc.
Any help would be amazing, id be very grateful.
Many Thanks
Tim