示例#1
0
 /// <summary>
 /// Create a new Trigger object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="enabled">Initial value of the Enabled property.</param>
 /// <param name="startDateTime">Initial value of the StartDateTime property.</param>
 /// <param name="repetition">Initial value of the Repetition property.</param>
 public static Trigger CreateTrigger(global::System.Int32 id, global::System.Boolean enabled, global::System.DateTime startDateTime, global::System.Int32 repetition)
 {
     Trigger trigger = new Trigger();
     trigger.ID = id;
     trigger.Enabled = enabled;
     trigger.StartDateTime = startDateTime;
     trigger.Repetition = repetition;
     return trigger;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Trigger EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTrigger(Trigger trigger)
 {
     base.AddObject("Trigger", trigger);
 }