Hi, I use stored procedures in Entity Framework. Let's say that I have that procedure:
public static int DoSth(decimal id)
{
return (int)Adapter.my_proc(id).First();
}
as I don't want to get the First() element and then cast it as (int) everytime I'd like to have an extension method which do that for me (gets the First element and then cast it as a T). How will it looks like ?