Exemplo n.º 1
0
 /// <summary>
 /// Create a new Acount object.
 /// </summary>
 /// <param name="fName">Initial value of the FName property.</param>
 /// <param name="sName">Initial value of the SName property.</param>
 /// <param name="lName">Initial value of the LName property.</param>
 /// <param name="accountName">Initial value of the AccountName property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 /// <param name="eGN">Initial value of the EGN property.</param>
 /// <param name="adress">Initial value of the Adress property.</param>
 /// <param name="phone">Initial value of the Phone property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="accessLevel">Initial value of the AccessLevel property.</param>
 public static Acount CreateAcount(global::System.String fName, global::System.String sName, global::System.String lName, global::System.String accountName, global::System.String password, global::System.String eGN, global::System.String adress, global::System.String phone, global::System.String email, global::System.Int32 accessLevel)
 {
     Acount acount = new Acount();
     acount.FName = fName;
     acount.SName = sName;
     acount.LName = lName;
     acount.AccountName = accountName;
     acount.Password = password;
     acount.EGN = eGN;
     acount.Adress = adress;
     acount.Phone = phone;
     acount.Email = email;
     acount.AccessLevel = accessLevel;
     return acount;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Acount EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAcount(Acount acount)
 {
     base.AddObject("Acount", acount);
 }