Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PersonIdentities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPersonIdentities(PersonIdentity personIdentity)
 {
     base.AddObject("PersonIdentities", personIdentity);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new PersonIdentity object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="isAdmin">Initial value of the IsAdmin property.</param>
 public static PersonIdentity CreatePersonIdentity(global::System.Int32 id, global::System.Boolean isAdmin)
 {
     PersonIdentity personIdentity = new PersonIdentity();
     personIdentity.ID = id;
     personIdentity.IsAdmin = isAdmin;
     return personIdentity;
 }