| Visual Basic (Declaration) | |
|---|---|
Public NotInheritable Class SqlQuery Implements IQuery | |
| Visual Basic (Usage) | |
|---|---|
| |
| C# | |
|---|---|
public sealed class SqlQuery : IQuery | |
| Managed Extensions for C++ | |
|---|---|
public __gc __sealed class SqlQuery : public IQuery | |
| C++/CLI | |
|---|---|
public ref class SqlQuery sealed : public IQuery | |
| C# | |
|---|---|
// A customized User searcher. | |
SqlQuery allows to specify directly storage dependent queries that are then executed on the storage without any kind of parsing. This type of query is used to create complex joins or complex queries.
You should avoid to use SqlQuery in your code. Sometimes it could be better to create a stored procedure or an updatable view (in the storage). It's (in most cases) also faster to create those complex queries directly in the storage.
If you have to use this type of query in your application use it for example in specialized classes that do only execute queries (and NOT directly in your UI). You could for example derive from ObjectSearcher and create a customized searcher class that uses such queries.
When setting parameter have to use the {0}, {1}, ... syntax as shown in the example below.
System.Object
Chili.Opf3.Query.SqlQuery
Requirements
Namespace: Chili.Opf3.Query
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Chili.Opf3 (in Chili.Opf3.dll)