/// <summary> /// Create a new Measurement object. /// </summary> /// <param name="measurementId">Initial value of the MeasurementId property.</param> /// <param name="name">Initial value of the Name property.</param> public static Measurement CreateMeasurement(global::System.Int32 measurementId, global::System.String name) { Measurement measurement = new Measurement(); measurement.MeasurementId = measurementId; measurement.Name = name; return measurement; }
/// <summary> /// Deprecated Method for adding a new object to the Measurements EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMeasurements(Measurement measurement) { base.AddObject("Measurements", measurement); }