Castle ActiveRecord Failed to lazily initialize a collection - no session

今天折腾了一下Castle ActiveRecord  好久没弄过... 哎

             using (new SessionScope())
            {

                ArchivEnt Archivs= ArchivEnt .Find(1);

                string ArchiveNo= Archivs.ArchiveNo;


                int resultCount = Archivs.FilesEnt.Count;

            }

posted @ 2008-06-23 23:39  hemingchen  阅读(435)  评论(0编辑  收藏  举报