A class that creates an instance of an
SqlQuery class.
Syntax
| Visual Basic (Declaration) | |
|---|
Public NotInheritable Class SqlQueryBuilder |
| C# | |
|---|
public sealed class SqlQueryBuilder |
| Managed Extensions for C++ | |
|---|
public __gc __sealed class SqlQueryBuilder |
| C++/CLI | |
|---|
public ref class SqlQueryBuilder sealed |
Example
The following example shows how to use SqlQueryBuilder in your application.
| C# | Copy Code |
|---|
// ... Other code SqlQueryBuilder sqb = new SqlQueryBuilder("select * from USERS"); sqb.AddConditionIfParameterNotNull("lower(LAST_NAME) like {0}", lastName); sqb.AddConditionIfParameterNotNull("lower(FIRST_NAME) like {0}", firstName); ObjectSet<Call> os = context.GetObjectSet<Call>(sqb.ToSqlQuery()); // ... Other code. |
Remarks
Inheritance Hierarchy
System.Object
Chili.Opf3.Query.SqlQueryBuilder
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)
See Also