I have a stored procedure in which I imported as a function in my entity framework model. I want to assign one of the values of the stored proc to my label.text but it doesn’t appear in the intellisense. I must be doing something wrong. Can someone please assist?
private void GetBackgroundData()
{
List<GetBackground_Result> results = context.GetBackground().ToList();
lblFullName.Text = results.FullName // FullName doesn't appear in my intellisense
}
resultsis a List, not a single instance ofGetBackground_Result. You need to take a single element from the collection to set the text: