/// <summary> /// Create a new Socket object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> public static Socket CreateSocket(global::System.Int32 id, global::System.String name) { Socket socket = new Socket(); socket.Id = id; socket.Name = name; return socket; }
private bool FilterSocket(Socket entity) { return (entity.Id == this.SocketId); }
/// <summary> /// Deprecated Method for adding a new object to the Sockets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSockets(Socket socket) { base.AddObject("Sockets", socket); }