最近我.edmx
使用实体框架将 ado.net 添加到我的 ASP.NET MVC 项目中,但 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);
}