コード例 #1
0
ファイル: AskrindoModel.Designer.cs プロジェクト: ryanask/MRK
 /// <summary>
 /// Deprecated Method for adding a new object to the Causes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCauses(Cause cause)
 {
     base.AddObject("Causes", cause);
 }
コード例 #2
0
ファイル: AskrindoModel.Designer.cs プロジェクト: ryanask/MRK
 /// <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;
 }