Back to UsefulDB4O in ASP.NET

Attributes of the database element (UsefulDB4O in ASP.NET)

  1. serverType (requiredSeñalando)

    Type of server being used. There are 2 options:

      • EmbeddedServer:   web application has embedded the server and only supports clients from the application.
      • NetworkingServer: The server is located on another server.

    Bombilla  The two options are the elements of the enumeration UsefulDB4O.ApplicationConfig.Db4oServerType.

  2. alias (requiredSeñalando)

    Name given to the database. Must be unique for all databases defined in the web.config. This name is used later to access the database.

  3. remoteHost

    Name or IP of remote server if you select the server type NetworkingServer.
    This is required if the server type is NetworkingServer.

  4. remotePort

    Remote server port to which you are connecting in case of using the server type NetworkingServer.
    This attribute is required if the server type is NetworkingServer.

  5. remoteUser

    Remote user name you will use to connect to remote server in case of using the server type NetworkingServer.
    This attribute is required if the server type is NetworkingServer.

  6. remotePassword

    Remote user's password (remoteUser).
    This attribute is required if the server type is NetworkingServer.

  7. fileDb4oPath

    Db4o file path in case of using the server type EmbeddedServer. It can be an absolute path or a relative path.
    This attribute is required if the server type is EmbeddedServer

    Relative path example: /App_Data/products.db4o
    Absolute path example: C:\products.db4o

  8. assemblyWithDatabaseConfig

    Name of the assembly that contains the configuration that is to open the database.
    To see how to control the configuration that opens the database db4o, go to this page.

  9. staticMethodWithDatabaseConfig

    Static method that returns the configuration that will open the database.
    Must indicate the attribute assemblyWithDatabaseConfig.
    To see how to control the configuration that opens the database db4o, go to this page.

  10. openServerRetriesOnLock

    Number of retries to open the database in case of file lock. This value is used only with the server type is EmbeddedServer.

  11. openContainerOnBeginRequest

    Sets whether we want to automatically open the container to the database at the beginning of each web request.

  12. filldb4oentityinfo  (Advanced)

    Sets if we fill the properties of the interface IDB4OEntityInfo if the entity implements this interface.

  13. fillmode (Advanced)

    Indicate how many of the properties of the interface IDB4OEntityInfo will be filled. Only use this value if the attribute filldb4oentityinfo is true.

    Bombilla  It corresponds to the enumeration UsefulDB4O.EntityInfo.DB4OFillOptions.

Back to UsefulDB4O in ASP.NET

Last edited Jul 5, 2011 at 12:24 PM by pacoweb, version 8

Comments

No comments yet.