Chili.Opf3 Send comments on this topic.
OleDbStorage Class
See Also  Members   Example 
Chili.Opf3.Storages.OleDb Namespace : OleDbStorage Class




Storage class that encapsulates a pyhsical OleDb database.

Object Model



Syntax

Visual Basic (Declaration) 
Public Class OleDbStorage 
   Inherits SqlStorageBase
   Implements IStorageITransactionStorage 
Visual Basic (Usage)Copy Code
Dim instance As OleDbStorage
C# 
public class OleDbStorage : SqlStorageBase, IStorageITransactionStorage  
Managed Extensions for C++ 
public __gc class OleDbStorage : public SqlStorageBase, IStorageITransactionStorage  
C++/CLI 
public ref class OleDbStorage : public SqlStorageBase, IStorageITransactionStorage  

Example

The following example shows how you should use the OleDb storage in your applications.
C#Copy Code
// ... Other code 
 
// Creates a new ObjectContext that uses an OleDb 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 OleDbStorage("... some ConnectionString ...")); 
 
// ... Other code

Remarks

This class encapsulates a physical OleDb database. It is used to access to an Oracle database that is installed somewhere on your or on a remote machine. The storage implements the basic interfaces, such as IStorage for the basic storage IO functinality and ITransactionStorage for the transaction management.

Attention: You should not access the methods of the storage directly but instead register the storage with your instances of the ObjectContext. The ObjectContext accesses the methods internally to get the objects from the storage.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      Chili.Opf3.Storages.StorageBase
         Chili.Opf3.Storages.SqlStorageBase
            Chili.Opf3.Storages.OleDb.OleDbStorage
               Chili.Opf3.Storages.OleDb.AccessStorage

Requirements

Namespace: Chili.Opf3.Storages.OleDb

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