Esempio n. 1
0
        public bool PasswordDelete(Password password)
        {
            return Execute<bool>(dal =>
            {
                Password passwordDelete = dal.Password.Where(x => x.BusinessEntityID == password.BusinessEntityID).FirstOrDefault();
                if (passwordDelete != null)
                {
                    dal.Password.DeleteOnSubmit(passwordDelete);
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
Esempio n. 2
0
        public bool PasswordUpdate(Password password)
        {
            return Execute<bool>(dal =>
            {
                Password passwordUpdate = dal.Password.Where(x => x.BusinessEntityID == password.BusinessEntityID).FirstOrDefault();
                if (passwordUpdate != null)
                {
                    passwordUpdate.BusinessEntityID = password.BusinessEntityID;
                    passwordUpdate.PasswordHash = password.PasswordHash;
                    passwordUpdate.PasswordSalt = password.PasswordSalt;
                    passwordUpdate.rowguid = password.rowguid;
                    passwordUpdate.ModifiedDate = password.ModifiedDate;

                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
 partial void DeletePassword(Password instance);
 partial void UpdatePassword(Password instance);
 partial void InsertPassword(Password instance);
 public void PasswordUpdate(Password password)
 {
     adventureWorks_BC.PasswordUpdate(password);
 }
 public void PasswordAdd(Password password)
 {
     adventureWorks_BC.PasswordAdd(password);
 }