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




Storage class that encapsulates a pyhsical Ms Access database.

Object Model



Syntax

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

Example

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

Remarks

This class encapsulates a physical Ms Access 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