예제 #1
0
 /// <summary>
 /// 用于向 Produces EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToProduces(Produce produce)
 {
     base.AddObject("Produces", produce);
 }
예제 #2
0
 /// <summary>
 /// 创建新的 Produce 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="userId">UserId 属性的初始值。</param>
 /// <param name="createdAt">CreatedAt 属性的初始值。</param>
 /// <param name="modifiedAt">ModifiedAt 属性的初始值。</param>
 /// <param name="isEnd">IsEnd 属性的初始值。</param>
 /// <param name="number">Number 属性的初始值。</param>
 public static Produce CreateProduce(global::System.Int32 id, global::System.Int32 userId, global::System.DateTime createdAt, global::System.DateTime modifiedAt, global::System.Boolean isEnd, global::System.String number)
 {
     Produce produce = new Produce();
     produce.Id = id;
     produce.UserId = userId;
     produce.CreatedAt = createdAt;
     produce.ModifiedAt = modifiedAt;
     produce.IsEnd = isEnd;
     produce.Number = number;
     return produce;
 }