Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Locations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLocations(Location location)
 {
     base.AddObject("Locations", location);
 }
Example #2
0
 /// <summary>
 /// Create a new Location object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="gMTOffset">Initial value of the GMTOffset property.</param>
 /// <param name="sundayIsWorkingDay">Initial value of the SundayIsWorkingDay property.</param>
 /// <param name="mondayIsWorkingDay">Initial value of the MondayIsWorkingDay property.</param>
 /// <param name="tuesdayIsWorkingDay">Initial value of the TuesdayIsWorkingDay property.</param>
 /// <param name="lastUpdated">Initial value of the LastUpdated property.</param>
 /// <param name="lastUpdatedBy">Initial value of the LastUpdatedBy property.</param>
 public static Location CreateLocation(global::System.Int32 id, global::System.String name, global::System.Decimal gMTOffset, global::System.Boolean sundayIsWorkingDay, global::System.Boolean mondayIsWorkingDay, global::System.Boolean tuesdayIsWorkingDay, global::System.DateTime lastUpdated, global::System.String lastUpdatedBy)
 {
     Location location = new Location();
     location.ID = id;
     location.Name = name;
     location.GMTOffset = gMTOffset;
     location.SundayIsWorkingDay = sundayIsWorkingDay;
     location.MondayIsWorkingDay = mondayIsWorkingDay;
     location.TuesdayIsWorkingDay = tuesdayIsWorkingDay;
     location.LastUpdated = lastUpdated;
     location.LastUpdatedBy = lastUpdatedBy;
     return location;
 }