23 namespace Deveel.Data.Sql.Statements {
28 throw new ArgumentNullException(
"password");
29 if (String.IsNullOrEmpty(userName))
30 throw new ArgumentNullException(
"userName");
41 public string UserName {
get;
private set; }
51 var preparedPassword =
Password.Prepare(preparer);
57 var passwordText = evaluated.AsVarChar().Value.ToString();
59 context.
Request.
Query.CreateUser(UserName, passwordText);
62 #region PreparedSerializer
This is a plain-text password defined by the user.
void SetValue(string key, Type type, object value)
CreateUserStatement(ObjectData data)
Represents the foundation class of SQL statements to be executed.
override void ExecuteStatement(ExecutionContext context)
An interface used to prepare a SqlExpression object.
override void GetData(SerializeData data)
CreateUserStatement(string userName, SqlExpression password)
object Prepare(IExpressionPreparer preparer)
Converts the underlying value of this instance into an object that can be evaluated by an expression...
object GetValue(string key)
Defines the base class for instances that represent SQL expression tree nodes.
A contract for objects that participate to a SqlExpression.Prepare phase of an expression evaluation...
string GetString(string key)