iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

DbProvider.UseParameterPrefixInParameter Property

Does this ConnectionProvider require the use of the Named Prefix when trying to reference the Parameter in the Command's Parameter collection.

[Visual Basic]
<XmlAttribute(Type:=null, AttributeName:="useParameterPrefixInParameter", Namespace:="null", Form:=XmlSchemaForm.None, TypeId:=System.Xml.Serialization.XmlAttributeAttribute)>
NotOverridable Public Property UseParameterPrefixInParameter As  _
    Implements IDbProvider.
[C#]
[XmlAttribute(Type=null, AttributeName="useParameterPrefixInParameter", Namespace="null", Form=XmlSchemaForm.None, TypeId=System.Xml.Serialization.XmlAttributeAttribute)]
public Boolean UseParameterPrefixInParameter {get; set;}

Implements

IDbProvider.

Remarks

This is really only useful when the UseParameterPrefixInSql = true. When this is true the code will look like IDbParameter param = cmd.Parameters["@paramName"], if this is false the code will be IDbParameter param = cmd.Parameters["paramName"] - ie - Oracle.

See Also

DbProvider Class | IBatisNet.Common Namespace