/// <summary> /// 创建新的 ServerInfo 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="status">Status 属性的初始值。</param> /// <param name="commandId">CommandId 属性的初始值。</param> /// <param name="isAccept">IsAccept 属性的初始值。</param> /// <param name="lastRuntime">LastRuntime 属性的初始值。</param> /// <param name="interval">Interval 属性的初始值。</param> /// <param name="mode">Mode 属性的初始值。</param> public static ServerInfo CreateServerInfo(global::System.String id, global::System.Int32 status, global::System.String commandId, global::System.Boolean isAccept, global::System.DateTime lastRuntime, global::System.Int32 interval, global::System.Int32 mode) { ServerInfo serverInfo = new ServerInfo(); serverInfo.Id = id; serverInfo.Status = status; serverInfo.CommandId = commandId; serverInfo.IsAccept = isAccept; serverInfo.LastRuntime = lastRuntime; serverInfo.Interval = interval; serverInfo.Mode = mode; return serverInfo; }
/// <summary> /// 用于向 ServerInfoes EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToServerInfoes(ServerInfo serverInfo) { base.AddObject("ServerInfoes", serverInfo); }