Microsoft.CSharp.RuntimeBinder.RuntimeBinderException:“无法将类型“System.Data.Entity.Infrastructure.DbQuery<TZM.TROA.Model.RoleInfo>”转换为“System.Collections.Generic.List<TZM.TROA.Model.RoleInfo>””
后台 ViewBag.AllRoles = roleInfoService.LoadEntities(r=>r.DelFlag==DelFlag).ToList(); 红色加上转list