2

かなり簡単で単純に思えますが、私は次のことを行っており、「オブジェクト参照がオブジェクトのインスタンスに設定されていません」を取得しています。エラー。とてもシンプルなアップデートです。

   [AcceptVerbs(HttpVerbs.Post)][Authorize(Roles="admin")][ValidateInput(false)]
    public ActionResult SaveContent(int id, string content)
        {
            var page = _repos.Single<Models.Page>(p=>p.PageID == id);
            page.PageContent = content;
            _repos.Update(page);
             return RedirectToAction("Index",new { pagename=page.Name});
         }

デバッガーで、実際にオブジェクトを取得して新しい値で更新していることを確認できますが、_repos.Update(page); 毎回窒息します。

この問題を抱えている他の人はいますか?

4

1 に答える 1

5

This is a bug of SubSonic 3.0.0.3, you should go to http://github.com/subsonic/SubSonic-3.0/tree/master, get the latest source code and build the dll yourself.

于 2009-07-28T03:01:51.277 に答える