コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Tickets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTickets(Ticket ticket)
 {
     base.AddObject("Tickets", ticket);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Ticket object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="autoNumber">Initial value of the AutoNumber property.</param>
 /// <param name="departmentId">Initial value of the DepartmentId property.</param>
 public static Ticket CreateTicket(global::System.Int32 id, global::System.DateTime created, global::System.Int32 type, global::System.Int32 status, global::System.String autoNumber, global::System.Guid departmentId)
 {
     Ticket ticket = new Ticket();
     ticket.Id = id;
     ticket.Created = created;
     ticket.Type = type;
     ticket.Status = status;
     ticket.AutoNumber = autoNumber;
     ticket.DepartmentId = departmentId;
     return ticket;
 }