本文整理汇总了C#中ObjectIdentifier.ToSchemaObjectName方法的典型用法代码示例。如果您正苦于以下问题:C# ObjectIdentifier.ToSchemaObjectName方法的具体用法?C# ObjectIdentifier.ToSchemaObjectName怎么用?C# ObjectIdentifier.ToSchemaObjectName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectIdentifier
的用法示例。
在下文中一共展示了ObjectIdentifier.ToSchemaObjectName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateExecForProcUnderTest
private void CreateExecForProcUnderTest(ObjectIdentifier procUnderTest)
{
var calleeProcedure = new ProcedureReference();
calleeProcedure.Name = new SchemaObjectName();
_execProc.ExecuteSpecification = new ExecuteSpecification();
var entity = new ExecutableProcedureReference();
entity.ProcedureReference = new ProcedureReferenceName();
entity.ProcedureReference.ProcedureReference = calleeProcedure;
entity.ProcedureReference.ProcedureReference.Name = procUnderTest.ToSchemaObjectName();
_execProc.ExecuteSpecification.ExecutableEntity = entity;
}
示例2: CreateSelectForFunctionUnderTest
private void CreateSelectForFunctionUnderTest(ObjectIdentifier name)
{
var select = new QuerySpecification();
select.SelectElements.Add(new SelectStarExpression());
var from = new FromClause();
var reference = new SchemaObjectFunctionTableReference();
foreach (var p in _parameters)
{
reference.Parameters.Add(new VariableReference(){Name = p.Name});
}
reference.SchemaObject = name.ToSchemaObjectName();
from.TableReferences.Add(reference);
select.FromClause = from;
_functionSelect.QueryExpression = select;
}