NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Bind an instance of System.DateTime to a named parameter.
Namespace: NPersistenceAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
| C# |
Query SetParameter( string name, DateTime value, TemporalType temporalType )
Parameters
- name
- String
parameter name
- value
- DateTime
parameter value
- temporalType
- TemporalType
temporal type
Return Value
the same query instance
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | if the parameter name does not correspond to a parameter of the query or if the value argument is of incorrect type |