コード例 #1
0
ファイル: Model.Designer.cs プロジェクト: thilehoffer/CSM
 /// <summary>
 /// Deprecated Method for adding a new object to the StudentParents EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStudentParents(StudentParent studentParent)
 {
     base.AddObject("StudentParents", studentParent);
 }
コード例 #2
0
ファイル: Model.Designer.cs プロジェクト: thilehoffer/CSM
 /// <summary>
 /// Create a new StudentParent object.
 /// </summary>
 /// <param name="studentParentId">Initial value of the StudentParentId property.</param>
 /// <param name="studentId">Initial value of the StudentId property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param>
 /// <param name="lastModifiedOn">Initial value of the LastModifiedOn property.</param>
 public static StudentParent CreateStudentParent(global::System.Int32 studentParentId, global::System.Int32 studentId, global::System.Int32 createdBy, global::System.DateTime createdOn, global::System.Int32 lastModifiedBy, global::System.DateTime lastModifiedOn)
 {
     StudentParent studentParent = new StudentParent();
     studentParent.StudentParentId = studentParentId;
     studentParent.StudentId = studentId;
     studentParent.CreatedBy = createdBy;
     studentParent.CreatedOn = createdOn;
     studentParent.LastModifiedBy = lastModifiedBy;
     studentParent.LastModifiedOn = lastModifiedOn;
     return studentParent;
 }