SetHint Method
NPersistence Reference Guide
Set a query property or hint. The hints elements may be used to specify query properties and hints. Properties defined by this specification must be observed by the provider. Vendor-specific hints that are not recognized by a provider must be silently ignored. Portable applications should not rely on the standard timeout hint. Depending on the database in use and the locking mechanisms used by the provider, this hint may or may not be observed.

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
Query SetHint(
	string hintName,
	Object value
)

Parameters

hintName
String
name of the property or hint
value
Object
value for the property or hint

Return Value

the same query instance

Exceptions

ExceptionCondition
System..::..ArgumentException if the second argument is not valid for the implementation

See Also