コード例 #1
0
 private EF.Peer externalPeerToEFPeer(Entities.Peer peer)
 {
     EF.Peer EFPeer = new EF.Peer();
     EFPeer.PeerHostName = peer.PeerHostName;
     EFPeer.Comments     = peer.Comments;
     EFPeer.PeerID       = peer.PeerID;
     return(EFPeer);
 }
コード例 #2
0
ファイル: ORM.cs プロジェクト: smardakh/FreeFilesProject
        public void AddFiles(List <FreeFilesServerConsole.EF.File> FilesList, Entities.Peer peer)
        {
            fileRepository.AddFiles(FilesList);
            PeerRepository peerRepository = new PeerRepository(_freeFilesObjectContext as FreeFilesServerConsole.IUnitOfWork);

            peerRepository.AddPeer(FreeFilesServerConsole.EntityUtility.externalPeerToEFPeer(peer));
            SaveFile();
        }
コード例 #3
0
        public void AddFiles(List <Entities.File> FilesList, Entities.Peer peer)
        {
            FileRepository fileRepository = new FileRepository(_freeFilesObjectContext as FreeFilesServerConsole.IUnitOfWork);

            this.AddPeer(externalPeerToEFPeer(peer));
            fileRepository.AddFiles(externalFileToEFFile(FilesList));

            SaveFile();
        }
コード例 #4
0
 public void AddFiles(List <FreeFilesServerConsole.EF.File> FilesList, Entities.Peer peer)
 {
     SaveFile();
 }