Create ObjectManager

There are three parameters in ObjectManager class constructor:

l    DatabaseType

l    ConnectionType

l    ConnectionString

 

DatabaseType and ConnectionType are as follows:

public enum DatabaseType

{

      Generic,

      SqlServer,

      Access,

      Oracle,

      Xml

}

 

public enum ConnectionType

{

      Odbc,

      OleDb,

      Sql,

      Oracle,

      Xml

}

 

You can construct an ObjectManager connecting with Access database through OleDb in the following way:

ObjectManager om = new ObjectManager(

    DatabaseType.Access,

    ConnectionType.OleDb,

    "..."

  );

// ...

Related Topics

Using NObject Persistence Layer