今天折腾了一下Castle ActiveRecord 好久没弄过... 哎 using (new SessionScope()) {
ArchivEnt Archivs= ArchivEnt .Find(1);
string ArchiveNo= Archivs.ArchiveNo;
int resultCount = Archivs.FilesEnt.Count;
}