/// <summary> /// Creates an account in the DB. /// </summary> /// <param name="AccountName">The name of the account to create.</param> /// <param name="Password">The password of the account to create.</param> public static void CreateAccount(string AccountName, string Password) { using (TSODataContext Context = new TSODataContext(DBConnectionManager.DBConnection)) { Account Acc = new Account(); Acc.AccountName = AccountName; Acc.Password = Password; Context.Accounts.InsertOnSubmit(Acc); Context.SubmitChanges(); } }
private void detach_Accounts2(Account entity) { this.SendPropertyChanging(); entity.Character5 = null; }
private void attach_Accounts1(Account entity) { this.SendPropertyChanging(); entity.Character4 = this; }
partial void DeleteAccount(Account instance);
partial void UpdateAccount(Account instance);
partial void InsertAccount(Account instance);
public Sim(Account OwnerAccount) { m_Account = OwnerAccount; }