Beispiel #1
0
 /// <summary>
 /// Create a new Event object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="sysName">Initial value of the SysName property.</param>
 /// <param name="regionId">Initial value of the RegionId property.</param>
 /// <param name="isRepeatable">Initial value of the IsRepeatable property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static Event CreateEvent(global::System.Int32 id, global::System.String sysName, global::System.Int32 regionId, global::System.Boolean isRepeatable, global::System.Boolean isActive)
 {
     Event @event = new Event();
     @event.Id = id;
     @event.SysName = sysName;
     @event.RegionId = regionId;
     @event.IsRepeatable = isRepeatable;
     @event.IsActive = isActive;
     return @event;
 }
Beispiel #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Events EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEvents(Event @event)
 {
     base.AddObject("Events", @event);
 }