Megosztás a következőn keresztül:


SqlDatabase Class

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Represents a SQL Server database.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data.Sql
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

Syntax

'Declaration
<DatabaseAssemblerAttribute(GetType(SqlDatabaseAssembler))> _
<SqlClientPermissionAttribute(SecurityAction.Demand)> _
PublicClassSqlDatabase _
    Inherits Database
[DatabaseAssemblerAttribute(typeof(SqlDatabaseAssembler))]
[SqlClientPermissionAttribute(SecurityAction.Demand)]
publicclassSqlDatabase : Database
[DatabaseAssemblerAttribute(typeof(SqlDatabaseAssembler))]
[SqlClientPermissionAttribute(SecurityAction::Demand)]
publicref classSqlDatabase : public Database
publicclass SqlDatabase extends Database

Remarks

Internally uses SQL Server .NET Managed Provider from Microsoft (System.Data.SqlClient) to connect to the database.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Data.Database
    Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase

See Also

SqlDatabase Members

Microsoft.Practices.EnterpriseLibrary.Data.Sql Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.