/// <summary> /// 用于向 Server EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToServer(Server server) { base.AddObject("Server", server); }
/// <summary> /// 创建新的 Server 对象。 /// </summary> /// <param name="serverID">ServerID 属性的初始值。</param> /// <param name="serverName">ServerName 属性的初始值。</param> /// <param name="isActive">IsActive 属性的初始值。</param> public static Server CreateServer(global::System.Guid serverID, global::System.String serverName, global::System.Boolean isActive) { Server server = new Server(); server.ServerID = serverID; server.ServerName = serverName; server.IsActive = isActive; return server; }