我将结果返回为:
return DataTablesResult.Create(
catalogues,
dataTableParam,
uv => new {
PendingCopies = (uv.Status.Equals((int)Services.Sequester.CitedWorkStatus.Uncatalogued) || uv.Status.Equals((int)Services.Sequester.CitedWorkStatus.Unapproved)) ? uv.PendingCopies + 1 : uv.PendingCopies,
StatusName = ((Services.Sequester.CitedWorkStatus)uv.Status).ToString().Replace("_", " "),
IconSet = this.RenderPartialViewToString("Buttons/_gridIconSetCatalogue", new Int32[] {uv.MaterialId, uv.Status})
}
);
表中只有183条记录但它引发了异常:
的System.OutOfMemoryException'发生在EntityFramework.SqlServer.dll
中
有什么建议吗?