LINQ to Entities does not recognize the method ToString()

来源:互联网 发布:农行软件中心待遇 编辑:程序博客网 时间:2024/05/22 06:54

SqlFunctions.StringConvert

ddEnrollmentMethod.DataSource = from t in context.EnrollmentMethodsorderby t.Nameselect new{Name = SqlFunctions.StringConvert((double)t.EnrollmentMethodID) + ". " + t.Name,t.EnrollmentMethodID};

原创粉丝点击