Beispiel #1
0
 public static 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);
 }
 public static 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;
 }
Beispiel #3
0
        public void AddPeer(FreeFilesServerConsole.EF.Peer Peer)
        {
            FileRepository fileRepository = new FileRepository(_freeFilesObjectContext as FreeFilesServerConsole.IUnitOfWork);

            fileRepository.AddPeer(Peer);
        }