本文整理汇总了C#中ObjectName类的典型用法代码示例。如果您正苦于以下问题:C# ObjectName类的具体用法?C# ObjectName怎么用?C# ObjectName使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjectName类属于命名空间,在下文中一共展示了ObjectName类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetQueryContext
private void SetQueryContext(SimpleQuery query)
{
_query = query;
_tableName = ObjectName.Parse(query.TableName.Split('.').Last());
_table = _schema.FindTable(_tableName);
_commandBuilder = new CommandBuilder(GetSelectClause(_tableName), _schema.SchemaProvider);
}
示例2: SimpleSelectNode
public SimpleSelectNode(IQueryPlanNode child, ObjectName leftVar, Operator op, Expression rightExpression)
: base(child)
{
this.leftVar = leftVar;
this.op = op;
this.rightExpression = rightExpression;
}
示例3: OldNewTableState
internal OldNewTableState(ObjectName tableSource, int oldRowIndex, Row newDataRow, bool newMutable)
{
TableSource = tableSource;
OldRowIndex = oldRowIndex;
NewDataRow = newDataRow;
IsNewMutable = newMutable;
}
示例4: RenameTriggerAction
public RenameTriggerAction(ObjectName name)
{
if (name == null)
throw new ArgumentNullException("name");
Name = name;
}
示例5: AddForeignKey
public static void AddForeignKey(this ITransaction transaction, ObjectName table, string[] columns,
ObjectName refTable, string[] refColumns,
ForeignKeyAction deleteRule, ForeignKeyAction updateRule, String constraintName)
{
AddForeignKey(transaction, table, columns, refTable, refColumns, deleteRule, updateRule,
ConstraintDeferrability.InitiallyImmediate, constraintName);
}
示例6: CreateSequenceStatement
public CreateSequenceStatement(ObjectName sequenceName)
{
if (sequenceName == null)
throw new ArgumentNullException("sequenceName");
SequenceName = sequenceName;
}
示例7: SetQueryContext
private void SetQueryContext(SimpleQuery query)
{
_query = query;
_tableName = _schema.BuildObjectName(query.TableName);
_table = _schema.FindTable(_tableName);
var selectClause = _query.Clauses.OfType<SelectClause>().SingleOrDefault();
if (selectClause != null)
{
if (selectClause.Columns.OfType<AllColumnsSpecialReference>().Any())
{
_columns = ExpandAllColumnsReferences(selectClause.Columns).ToArray();
}
else
{
_columns = selectClause.Columns.ToArray();
}
}
else
{
_columns = _table.Columns.Select(c => ObjectReference.FromStrings(_table.Schema, _table.ActualName, c.ActualName)).ToArray();
}
HandleWithClauses();
_whereCriteria = _query.Clauses.OfType<WhereClause>().Aggregate(SimpleExpression.Empty,
(seed, where) => seed && where.Criteria);
_havingCriteria = _query.Clauses.OfType<HavingClause>().Aggregate(SimpleExpression.Empty,
(seed, having) => seed && having.Criteria);
_commandBuilder.SetText(GetSelectClause(_tableName));
}
示例8: AddNotificationListener
public void AddNotificationListener(object token, ObjectName name, ObjectName listener, NotificationFilterCallback filterCallback, object handback)
{
using (TemporarySecurityContext tsc = new TemporarySecurityContext(Authorize(token)))
{
_server.AddNotificationListener(name, listener, filterCallback, handback);
}
}
示例9: CreateMBean
public ObjectInstance CreateMBean(object token, string className, ObjectName name, object[] arguments)
{
using (TemporarySecurityContext tsc = new TemporarySecurityContext(Authorize(token)))
{
return _server.CreateMBean(className, name, arguments);
}
}
示例10: MakeMessage
private static string MakeMessage(string userName, ObjectName objectName, Privileges privileges)
{
if (privileges == Privileges.None)
return String.Format("User '{0}' has not enough privileges to operate on the object '{1}'.", userName, objectName);
return String.Format("User '{0}' has not the privilege '{1}' on the object '{2}'.", userName, privileges, objectName);
}
示例11: Named
public static ITableInfoBuilder Named(this ITableInfoBuilder builder, ObjectName tableName)
{
if (tableName == null)
throw new ArgumentNullException("tableName");
return builder.InSchema(tableName.ParentName).Named(tableName.Name);
}
示例12: MissingPrivilegesException
public MissingPrivilegesException(string userName, ObjectName objectName, Privileges privileges, string message)
: base(SecurityErrorCodes.MissingPrivileges, message)
{
UserName = userName;
ObjectName = objectName;
Privileges = privileges;
}
示例13: SimpleSelectNode
public SimpleSelectNode(IQueryPlanNode child, ObjectName columnName, SqlExpressionType op, SqlExpression expression)
: base(child)
{
ColumnName = columnName;
OperatorType = op;
Expression = expression;
}
示例14: QuoteObjectName
public string QuoteObjectName(ObjectName unquotedName)
{
if (!string.IsNullOrWhiteSpace(unquotedName.Schema))
return _schemaProvider.QuoteObjectName(unquotedName.Schema) + '.' + _schemaProvider.QuoteObjectName(unquotedName.Name);
else
return _schemaProvider.QuoteObjectName(unquotedName.Name);
}
示例15: HasPrivileges
public override bool HasPrivileges(DbObjectType objectType, ObjectName objectName, Privileges privileges)
{
if (IsSecureAccess)
return true;
return base.HasPrivileges(objectType, objectName, privileges);
}