-1

Recently I added ado.net .edmx to my ASP.NET MVC project using Entity Framework but there is an error in context.cs

[DbFunction("Entities", "Split_Str")]
public virtual IQueryable<Split_Str_Result> Split_Str(string list, string splitChar)
{
    var listParameter = list != null ?
            new ObjectParameter("list", list) :
            new ObjectParameter("list", typeof(string));

    var splitCharParameter = splitChar != null ?
            new ObjectParameter("splitChar", splitChar) :
            new ObjectParameter("splitChar", typeof(string));

    return ((IObjectContextAdapter)this).ObjectContext.CreateQuery<Split_Str_Result>("[Entities].[Split_Str](@list, @splitChar)", listParameter, splitCharParameter);
}
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Owais khan
  • 70
  • 1
  • 9
  • ***WHAT*** is the error!?!? We cannot read your screen - nor your mind - you'll have to **show us!** – marc_s Mar 05 '16 at 16:37

1 Answers1

2

If you haven't, try adding using System.Linq;

John Slegers
  • 45,213
  • 22
  • 199
  • 169
ttaaoossuuuu
  • 7,786
  • 3
  • 28
  • 58