Esempio n. 1
0
 /// <include file='..\..\..\..\..\..\..\doc\snippets\Microsoft.Data.SqlClient\SqlConnection.xml' path='docs/members[@name="SqlConnection"]/GetSchemaCollectionNameRestrictionValues/*' />
 override public DataTable GetSchema(string collectionName, string[] restrictionValues)
 {
     // NOTE: This is virtual because not all providers may choose to support
     //       returning schema data
     SqlConnection.ExecutePermission.Demand();
     return(InnerConnection.GetSchema(ConnectionFactory, PoolGroup, this, collectionName, restrictionValues));
 }
Esempio n. 2
0
 /// <summary>
 /// Returns schema information for the data source of this <see cref="T:System.Data.Common.DbConnection" /> using the specified string for the schema name and the specified string array for the restriction values.
 /// </summary>
 /// <param name="collectionName">Specifies the name of the schema to return.</param>
 /// <param name="restrictionValues">Specifies a set of restriction values for the requested schema.</param>
 /// <returns>
 /// A <see cref="T:System.Data.DataTable" /> that contains schema information.
 /// </returns>
 /// <PermissionSet>
 ///   <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" PathDiscovery="*AllFiles*" />
 /// </PermissionSet>
 public override DataTable GetSchema(string collectionName, string[] restrictionValues)
 {
     if (State != ConnectionState.Open)
     {
         throw new InvalidOperationException(Messages.CannotCallMethodInThisConnectionState("GetSchema", State));
     }
     return(InnerConnection.GetSchema(collectionName, restrictionValues));
 }
Esempio n. 3
0
 /// <summary>
 /// Returns schema information for the data source of this <see cref="T:System.Data.Common.DbConnection" />.
 /// </summary>
 /// <returns>
 /// A <see cref="T:System.Data.DataTable" /> that contains schema information.
 /// </returns>
 /// <PermissionSet>
 ///   <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" PathDiscovery="*AllFiles*" />
 /// </PermissionSet>
 public override DataTable GetSchema()
 {
     if (State != ConnectionState.Open)
     {
         throw new InvalidOperationException(Messages.CannotCallMethodInThisConnectionState("GetSchema", State));
     }
     return(InnerConnection.GetSchema());
 }
 public override DataTable GetSchema(string collectionName, string[] restrictionValues)
 {
     return(InnerConnection.GetSchema(collectionName, restrictionValues));
 }
 public override DataTable GetSchema(string collectionName)
 {
     return(InnerConnection.GetSchema(collectionName));
 }
 public override DataTable GetSchema()
 {
     return(InnerConnection.GetSchema());
 }
Esempio n. 7
0
 public override DataTable GetSchema(string collectionName, string[] restrictionValues)
 {
     return(InnerConnection.GetSchema(ConnectionFactory, PoolGroup, this, collectionName, restrictionValues));
 }