コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Principals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPrincipals(Principal principal)
 {
     base.AddObject("Principals", principal);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Principal object.
 /// </summary>
 /// <param name="faculty_Id">Initial value of the Faculty_Id property.</param>
 /// <param name="priority">Initial value of the Priority property.</param>
 public static Principal CreatePrincipal(global::System.String faculty_Id, global::System.Byte priority)
 {
     Principal principal = new Principal();
     principal.Faculty_Id = faculty_Id;
     principal.Priority = priority;
     return principal;
 }