/// <summary> /// Deprecated Method for adding a new object to the Causes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCauses(Cause cause) { base.AddObject("Causes", cause); }
/// <summary> /// Create a new Cause object. /// </summary> /// <param name="causeId">Initial value of the CauseId property.</param> /// <param name="causeTypeId">Initial value of the CauseTypeId property.</param> /// <param name="causeName">Initial value of the CauseName property.</param> public static Cause CreateCause(global::System.Int32 causeId, global::System.Int32 causeTypeId, global::System.String causeName) { Cause cause = new Cause(); cause.CauseId = causeId; cause.CauseTypeId = causeTypeId; cause.CauseName = causeName; return cause; }