开发者

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

开发者 https://www.devze.com 2023-03-05 09:37 出处:网络
I am new in orchard CMS, I am integrating my own application in orchard CMS. I have create a edmx file thenI have created an Action to Display the records,But it give me ERROR THAT\"The operation is n

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

精彩评论

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