public TableNameFunctionImpl(SQLVendorImpl vendor, String schemaName, SQLFunctionLiteral sqlFunction) : base(vendor, schemaName) { ArgumentValidator.ValidateNotNull(nameof(sqlFunction), sqlFunction); this._function = sqlFunction; }
public virtual TableNameFunction NewTableNameFunction(SQLFunctionLiteral function, String schemaName = null) { return(new TableNameFunctionImpl(this.vendor, schemaName, function)); }
public static QueryExpression CallFunction(this QueryFactory factory, SQLFunctionLiteral function) { return(CallFunction(factory, null, function)); }
public static QueryExpression CallFunction(this QueryFactory factory, String schemaName, SQLFunctionLiteral function) { var b = factory.NewQuerySpecificationBuilder(); b.ColumnsBuilder.SelectAll(); b.FromBuilder.AddTableNamesP(Tuple.Create <String, TableName>(null, factory.NewTableNameFunction(function, schemaName))); return(factory.NewQuery(b.CreateExpression())); }