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;

            }

你可能感兴趣的:(ActiveRecord)