本文整理汇总了C#中ObjectName类的典型用法代码示例。如果您正苦于以下问题:C# ObjectName类的具体用法?C# ObjectName怎么用?C# ObjectName使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjectName类属于命名空间,在下文中一共展示了ObjectName类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:vansha,项目名称:Simple.Data,代码行数:7,代码来源:QueryBuilder.cs
示例2: SimpleSelectNode
public SimpleSelectNode(IQueryPlanNode child, ObjectName leftVar, Operator op, Expression rightExpression)
: base(child)
{
this.leftVar = leftVar;
this.op = op;
this.rightExpression = rightExpression;
}
开发者ID:kaktusan,项目名称:plsqlparser,代码行数:7,代码来源:SimpleSelectNode.cs
示例3: OldNewTableState
internal OldNewTableState(ObjectName tableSource, int oldRowIndex, Row newDataRow, bool newMutable)
{
TableSource = tableSource;
OldRowIndex = oldRowIndex;
NewDataRow = newDataRow;
IsNewMutable = newMutable;
}
开发者ID:ArsenShnurkov,项目名称:deveeldb,代码行数:7,代码来源:OldNewTableState.cs
示例4: RenameTriggerAction
public RenameTriggerAction(ObjectName name)
{
if (name == null)
throw new ArgumentNullException("name");
Name = name;
}
开发者ID:deveel,项目名称:deveeldb,代码行数:7,代码来源:RenameTriggerAction.cs
示例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);
}
开发者ID:prepare,项目名称:deveeldb,代码行数:7,代码来源:TransactionConstraintExtensions.cs
示例6: CreateSequenceStatement
public CreateSequenceStatement(ObjectName sequenceName)
{
if (sequenceName == null)
throw new ArgumentNullException("sequenceName");
SequenceName = sequenceName;
}
开发者ID:ArsenShnurkov,项目名称:deveeldb,代码行数:7,代码来源:CreateSequenceStatement.cs
示例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));
}
开发者ID:hlach,项目名称:Simple.Data,代码行数:31,代码来源:QueryBuilder.cs
示例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);
}
}
开发者ID:SzymonPobiega,项目名称:NetMX,代码行数:7,代码来源:RemotingConnectionImpl.cs
示例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);
}
}
开发者ID:SzymonPobiega,项目名称:NetMX,代码行数:7,代码来源:RemotingConnectionImpl.cs
示例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);
}
开发者ID:ArsenShnurkov,项目名称:deveeldb,代码行数:7,代码来源:MissingPrivilegesException.cs
示例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);
}
开发者ID:deveel,项目名称:deveeldb,代码行数:7,代码来源:TableInfoBuilderExtensions.cs
示例12: MissingPrivilegesException
public MissingPrivilegesException(string userName, ObjectName objectName, Privileges privileges, string message)
: base(SecurityErrorCodes.MissingPrivileges, message)
{
UserName = userName;
ObjectName = objectName;
Privileges = privileges;
}
开发者ID:ArsenShnurkov,项目名称:deveeldb,代码行数:7,代码来源:MissingPrivilegesException.cs
示例13: SimpleSelectNode
public SimpleSelectNode(IQueryPlanNode child, ObjectName columnName, SqlExpressionType op, SqlExpression expression)
: base(child)
{
ColumnName = columnName;
OperatorType = op;
Expression = expression;
}
开发者ID:prepare,项目名称:deveeldb,代码行数:7,代码来源:SimpleSelectNode.cs
示例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);
}
开发者ID:reverentgeek,项目名称:Simple.Data,代码行数:7,代码来源:DatabaseSchema.cs
示例15: HasPrivileges
public override bool HasPrivileges(DbObjectType objectType, ObjectName objectName, Privileges privileges)
{
if (IsSecureAccess)
return true;
return base.HasPrivileges(objectType, objectName, privileges);
}
开发者ID:deveel,项目名称:deveeldb,代码行数:7,代码来源:Role.cs
示例16: ForeignKey
public ForeignKey(ObjectName detailTable, IEnumerable<string> columns, ObjectName masterTable, IEnumerable<string> masterColumns)
{
_columns = new Key(columns);
_detailTable = detailTable;
_masterTable = masterTable;
_masterColumns = new Key(masterColumns);
}
开发者ID:robashton,项目名称:Simple.Data,代码行数:7,代码来源:ForeignKey.cs
示例17: BuildMessage
private static string BuildMessage(ObjectName objectName)
{
if (objectName == null)
return "Cannot access the object: possibly not enough privileges.";
return String.Format("Cannot access the '{0}': possibly not enough privileges.", objectName);
}
开发者ID:ArsenShnurkov,项目名称:deveeldb,代码行数:7,代码来源:InvalidAccessException.cs
示例18: JoinNode
public JoinNode(IQueryPlanNode left, IQueryPlanNode right, ObjectName leftColumnName, SqlExpressionType @operator, SqlExpression rightExpression)
: base(left, right)
{
LeftColumnName = leftColumnName;
Operator = @operator;
RightExpression = rightExpression;
}
开发者ID:ArsenShnurkov,项目名称:deveeldb,代码行数:7,代码来源:JoinNode.cs
示例19: DropViewIndex
static SqlPreCommand DropViewIndex(ObjectName viewName, string index)
{
return new[]{
DropIndex(viewName, index),
DropView(viewName)
}.Combine(Spacing.Simple);
}
开发者ID:nuub666,项目名称:framework,代码行数:7,代码来源:SqlBuilder.cs
示例20: Reference
public IExpressionBuilder Reference(ObjectName referenceName)
{
expression = SqlExpression.Reference(referenceName);
VerifyUnary();
return this;
}
开发者ID:deveel,项目名称:deveeldb,代码行数:7,代码来源:ExpressionBuilder.cs
注:本文中的ObjectName类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论