Esempio n. 1
0
 /// <summary>
 /// 用于向 ServerSettings EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToServerSettings(ServerSetting serverSetting)
 {
     base.AddObject("ServerSettings", serverSetting);
 }
Esempio n. 2
0
 /// <summary>
 /// 创建新的 ServerSetting 对象。
 /// </summary>
 /// <param name="id">ID 属性的初始值。</param>
 /// <param name="serverName">ServerName 属性的初始值。</param>
 /// <param name="serverType">ServerType 属性的初始值。</param>
 /// <param name="iP">IP 属性的初始值。</param>
 public static ServerSetting CreateServerSetting(global::System.Int32 id, global::System.String serverName, global::System.Int32 serverType, global::System.String iP)
 {
     ServerSetting serverSetting = new ServerSetting();
     serverSetting.ID = id;
     serverSetting.ServerName = serverName;
     serverSetting.ServerType = serverType;
     serverSetting.IP = iP;
     return serverSetting;
 }