예제 #1
0
 /// <summary>
 /// Create a new Student object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="rollNo">Initial value of the RollNo property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="fatherName">Initial value of the FatherName property.</param>
 /// <param name="class">Initial value of the Class property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="active">Initial value of the Active property.</param>
 public static Student CreateStudent(global::System.Int32 id, global::System.String rollNo, global::System.String name, global::System.String fatherName, global::System.Int32 @class, global::System.DateTime createdDate, global::System.Boolean active)
 {
     Student student = new Student();
     student.ID = id;
     student.RollNo = rollNo;
     student.Name = name;
     student.FatherName = fatherName;
     student.Class = @class;
     student.CreatedDate = createdDate;
     student.Active = active;
     return student;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Students EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStudents(Student student)
 {
     base.AddObject("Students", student);
 }