コード例 #1
0
ファイル: SchoolModel.Designer.cs プロジェクト: kiszu/ForBlog
 /// <summary>
 /// Create a new OfficeAssignment object.
 /// </summary>
 /// <param name="instructorID">Initial value of the InstructorID property.</param>
 /// <param name="location">Initial value of the Location property.</param>
 /// <param name="timestamp">Initial value of the Timestamp property.</param>
 public static OfficeAssignment CreateOfficeAssignment(global::System.Int32 instructorID, global::System.String location, global::System.Byte[] timestamp)
 {
     OfficeAssignment officeAssignment = new OfficeAssignment();
     officeAssignment.InstructorID = instructorID;
     officeAssignment.Location = location;
     officeAssignment.Timestamp = timestamp;
     return officeAssignment;
 }
コード例 #2
0
ファイル: SchoolModel.Designer.cs プロジェクト: kiszu/ForBlog
 /// <summary>
 /// Deprecated Method for adding a new object to the OfficeAssignments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOfficeAssignments(OfficeAssignment officeAssignment)
 {
     base.AddObject("OfficeAssignments", officeAssignment);
 }