/// <summary> /// Create a new HazardType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="hazardTypeDescription">Initial value of the HazardTypeDescription property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static HazardType CreateHazardType(global::System.Int32 id, global::System.String hazardTypeDescription, global::System.Byte[] rowVersion) { HazardType hazardType = new HazardType(); hazardType.Id = id; hazardType.HazardTypeDescription = hazardTypeDescription; hazardType.RowVersion = rowVersion; return hazardType; }
/// <summary> /// Deprecated Method for adding a new object to the HazardTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHazardTypes(HazardType hazardType) { base.AddObject("HazardTypes", hazardType); }