Пример #1
0
 /// <summary>
 /// 创建新的 ClientInfo 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="name">Name 属性的初始值。</param>
 /// <param name="userId">UserId 属性的初始值。</param>
 /// <param name="createdAt">CreatedAt 属性的初始值。</param>
 /// <param name="modifiedAt">ModifiedAt 属性的初始值。</param>
 /// <param name="number">Number 属性的初始值。</param>
 public static ClientInfo CreateClientInfo(global::System.Int32 id, global::System.String name, global::System.Int32 userId, global::System.DateTime createdAt, global::System.DateTime modifiedAt, global::System.String number)
 {
     ClientInfo clientInfo = new ClientInfo();
     clientInfo.Id = id;
     clientInfo.Name = name;
     clientInfo.UserId = userId;
     clientInfo.CreatedAt = createdAt;
     clientInfo.ModifiedAt = modifiedAt;
     clientInfo.Number = number;
     return clientInfo;
 }
Пример #2
0
 /// <summary>
 /// 用于向 ClientInfos EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToClientInfos(ClientInfo clientInfo)
 {
     base.AddObject("ClientInfos", clientInfo);
 }