Allows access to the raw ADO.NET storage objects.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Class SqlRawStorageAccess |
| C# | |
|---|
public class SqlRawStorageAccess |
| Managed Extensions for C++ | |
|---|
public __gc class SqlRawStorageAccess |
| C++/CLI | |
|---|
public ref class SqlRawStorageAccess |
Example
The following example shows how to use this class to get access to the raw objects.
| C# | Copy Code |
|---|
// ... Other code // Creates a new ObjectContext that uses an Oracle database as storage. // You should only pass an instance of the storage to your ObjectContext. // That's it! Nothing more. The methods of the storage are accessed // by the context internally. ObjectContext context = new ObjectContext( new OracleStorage("... some ConnectionString ...")); SqlRawStorageAccess raw = new SqlRawStorageAccess(context.Storage as SqlStorageBase); // Use the raw connection from the storage. IDbConnection connection = raw.GetConnection(); // Get the raw command from the storage. IDbCommand command = raw.CreateCommand("select * from Foo"); // ... Other code |
Remarks
Inheritance Hierarchy
System.Object
Chili.Opf3.Storages.SqlRawStorageAccess
Requirements
Namespace: Chili.Opf3.Storages
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Chili.Opf3 (in Chili.Opf3.dll)
See Also