开发者

The operation is not valid for the state of the transaction In Orchard CMS

I am new in orchard CMS, I am integrating my own application in orchard CMS. I have create a edmx file then I have created an Action to Display the records, But it give me ERROR THAT "The operation is not valid for the state of the transaction".

Here is a code

[HttpGet] public ActionResult About() { return View(_db.tblNameTests.ToList()); } in view the code is:

@model List

Aboutus

@Html.ActionLink("Create New", "Create")

Id Name @foreach (var item in Model) { @item.id @item.name }

Is I am missing som开发者_JS百科e thing? Waiting for your valuable reply.


You need to opt out of Orchard's ambient transaction. See: http://orchard.codeplex.com/workitem/17291

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜