Remotion.Linq.SqlBackend.SqlPreparation.SqlPreparationQueryModelVisitor.TransformQueryModel C# (CSharp) Метод

TransformQueryModel() публичный статический Метод

public static TransformQueryModel ( QueryModel queryModel, ISqlPreparationContext parentPreparationContext, ISqlPreparationStage stage, UniqueIdentifierGenerator generator, ResultOperatorHandlerRegistry resultOperatorHandlerRegistry ) : SqlStatement
queryModel QueryModel
parentPreparationContext ISqlPreparationContext
stage ISqlPreparationStage
generator UniqueIdentifierGenerator
resultOperatorHandlerRegistry ResultOperatorHandlerRegistry
Результат Remotion.Linq.SqlBackend.SqlStatementModel.SqlStatement
    public static SqlStatement TransformQueryModel (
        QueryModel queryModel,
        ISqlPreparationContext parentPreparationContext,
        ISqlPreparationStage stage,
        UniqueIdentifierGenerator generator,
        ResultOperatorHandlerRegistry resultOperatorHandlerRegistry)
    {
      ArgumentUtility.CheckNotNull ("queryModel", queryModel);
      ArgumentUtility.CheckNotNull ("stage", stage);
      ArgumentUtility.CheckNotNull ("generator", generator);
      ArgumentUtility.CheckNotNull ("resultOperatorHandlerRegistry", resultOperatorHandlerRegistry);

      var visitor = new SqlPreparationQueryModelVisitor (parentPreparationContext, stage, generator, resultOperatorHandlerRegistry);
      queryModel.Accept (visitor);

      return visitor.GetSqlStatement();
    }

Usage Example

Пример #1
0
 public virtual SqlStatement PrepareSqlStatement(QueryModel queryModel, ISqlPreparationContext parentContext)
 {
     return(SqlPreparationQueryModelVisitor.TransformQueryModel(queryModel, parentContext, this, _uniqueIdentifierGenerator, _resultOperatorHandlerRegistry));
 }