本文整理汇总了C#中ObjectData.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# ObjectData.GetValue方法的具体用法?C# ObjectData.GetValue怎么用?C# ObjectData.GetValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectData
的用法示例。
在下文中一共展示了ObjectData.GetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: JoinNode
private JoinNode(ObjectData data)
: base(data)
{
LeftColumnName = data.GetValue<ObjectName>("LeftColumn");
Operator = (SqlExpressionType) data.GetInt32("Operator");
RightExpression = data.GetValue<SqlExpression>("RightExpression");
}
示例2: SqlConditionalExpression
private SqlConditionalExpression(ObjectData data)
: base(data)
{
TestExpression = data.GetValue<SqlExpression>("Test");
TrueExpression = data.GetValue<SqlExpression>("True");
FalseExpression = data.GetValue<SqlExpression>("False");
}
示例3: JoinPart
private JoinPart(ObjectData data)
{
TableName = data.GetValue<ObjectName>("Table");
SubQuery = data.GetValue<SqlQueryExpression>("SubQuery");
JoinType = (JoinType) data.GetInt32("JoinType");
OnExpression = data.GetValue<SqlExpression>("On");
}
示例4: SqlBinaryExpression
private SqlBinaryExpression(ObjectData data)
: base(data)
{
Left = data.GetValue<SqlExpression>("Left");
Right = data.GetValue<SqlExpression>("Right");
expressionType = (SqlExpressionType) data.GetInt32("ExpressionType");
}
示例5: QueryParameter
private QueryParameter(ObjectData data)
{
Name = data.GetString("Name");
SqlType = data.GetValue<SqlType>("Type");
Value = data.GetValue<Objects.ISqlObject>("Value");
Direction = (QueryParameterDirection) data.GetInt32("Direction");
}
示例6: SimpleSelectNode
private SimpleSelectNode(ObjectData data)
: base(data)
{
ColumnName = data.GetValue<ObjectName>("Column");
OperatorType = (SqlExpressionType) data.GetInt32("Operator");
Expression = data.GetValue<SqlExpression>("Expression");
}
示例7: SqlTableColumn
private SqlTableColumn(ObjectData data)
{
ColumnName = data.GetString("ColumnName");
ColumnType = data.GetValue<SqlType>("ColumnType");
IsIdentity = data.GetBoolean("IsIdentity");
IsNotNull = data.GetBoolean("IsNotNull");
DefaultExpression = data.GetValue<SqlExpression>("Default");
}
示例8: ColumnInfo
private ColumnInfo(ObjectData data)
{
ColumnName = data.GetString("ColumnName");
ColumnType = data.GetValue<SqlType>("ColumnType");
IsNotNull = data.GetBoolean("IsNotNull");
DefaultExpression = data.GetValue<SqlExpression>("Default");
IndexType = data.GetString("IndexType");
}
示例9: GrantPrivilegesStatement
private GrantPrivilegesStatement(ObjectData data)
{
ObjectName = data.GetValue<ObjectName>("ObjectName");
Grantee = data.GetString("Grantee");
Privilege = (Privileges) data.GetInt32("Privilege");
Columns = data.GetValue<string[]>("Columns");
WithGrant = data.GetBoolean("WithGrant");
}
示例10: GroupNode
private GroupNode(ObjectData data)
: base(data)
{
ColumnNames = data.GetValue<ObjectName[]>("Columns");
GroupMaxColumn = data.GetValue<ObjectName>("GroupMax");
Functions = data.GetValue<SqlExpression[]>("Functions");
Names = data.GetValue<string[]>("Names");
}
示例11: DeclareCursorStatement
private DeclareCursorStatement(ObjectData data)
{
CursorName = data.GetString("CursorName");
QueryExpression = data.GetValue<SqlQueryExpression>("QueryExpression");
Flags = (CursorFlags) data.GetInt32("Flags");
if (data.HasValue("Parameters")) {
var parameters = data.GetValue<CursorParameter[]>("Parameters");
Parameters = new List<CursorParameter>(parameters);
}
}
示例12: SqlTableConstraint
private SqlTableConstraint(ObjectData data)
{
ConstraintName = data.GetString("Name");
ConstraintType = (ConstraintType) data.GetInt32("Type");
Columns = data.GetValue<string[]>("Columns");
CheckExpression = data.GetValue<SqlExpression>("Check");
ReferenceTable = data.GetString("ReferenceTable");
ReferenceColumns = data.GetValue<string[]>("ReferenceColumns");
OnDelete = (ForeignKeyAction) data.GetInt32("OnDelete");
OnUpdate = (ForeignKeyAction) data.GetInt32("OnUpdate");
}
示例13: FromClause
private FromClause(ObjectData data)
{
var tableNames = data.GetValue<string[]>("TableNames");
var fromTables = data.GetValue<FromTable[]>("FromTables");
var joinParts = data.GetValue<JoinPart[]>("JoinParts");
this.tableNames = new List<string>();
this.fromTables = new List<FromTable>();
this.joinParts = new List<JoinPart>();
if (tableNames != null)
this.tableNames.AddRange(tableNames);
if (fromTables != null)
this.fromTables.AddRange(fromTables);
if (joinParts != null)
this.joinParts.AddRange(joinParts);
}
示例14: SqlQueryExpression
private SqlQueryExpression(ObjectData data)
{
if (data.HasValue("Columns"))
SelectColumns = data.GetValue<SelectColumn[]>("Columns");
Distinct = data.GetBoolean("Distinct");
FromClause = data.GetValue<FromClause>("From");
WhereExpression = data.GetValue<SqlExpression>("Where");
HavingExpression = data.GetValue<SqlExpression>("Having");
GroupBy = data.GetValue<SqlExpression[]>("GroupBy");
GroupMax = data.GetValue<ObjectName>("GroupMax");
NextComposite = data.GetValue<SqlQueryExpression>("NextComposite");
if (data.HasValue("CompositeFunction"))
CompositeFunction = (CompositeFunction) data.GetInt32("CompositeFunction");
IsCompositeAll = data.GetBoolean("CompositeAll");
}
示例15: Prepared
private Prepared(ObjectData data)
{
TableName = data.GetValue<ObjectName>("TableName");
QueryPlan = data.GetValue<IQueryPlanNode>("QueryPlan");
ColumnNames = data.GetValue<ObjectName[]>("ColumnNames");
ColumnIndices = data.GetValue<int[]>("ColumnIndices");
}