Beispiel #1
0
        /// <summary>
        ///     Creates the specified parameters.
        /// </summary>
        /// <param name="parameters">The parameters.</param>
        public void Create(CreateUserParameters parameters)
        {
            parameters.Password = _crypto.Hash(parameters.Password);

            using (ITransaction trans = _session.BeginTransaction())
            {
                _session.CreateCommandProcedure("User_Create", parameters)
                .ExecuteUpdate();

                trans.Commit();
            }
        }