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

DbProvider.AllowMARS Property

Tell us if this provider allows having multiple open IDataReader with the same IDbConnection.

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

Implements

IDbProvider.

Remarks

It's a new feature in ADO.NET 2.0 and Sql Server 2005 that allows for multiple forward only read only result sets (MARS). Some databases have supported this functionality for a long time : Not Supported : DB2, MySql.Data, OLE DB provider [except Sql Server 2005 when using MDAC 9], SQLite, Obdc Supported : Sql Server 2005, Npgsql

See Also

DbProvider Class | IBatisNet.Common Namespace