Menu

XML DTD

2004-11-04
2013-03-07
  • André Ribeiro

    André Ribeiro - 2004-11-04

    Hi,

    Do you have the AtomsFramework.xml DTD?

    I want to do the XML for the SQL Server and the variables are:
    Name Server: "S2200DESV"
    Data base: "Transporte"
    User: "Transporte"
    PWD: "****"

    How can I write the XML? My other question is the OIDTable. It must exists?

    Thank you,
    Andr Ribeiro from Brazil.

     
    • André Ribeiro

      André Ribeiro - 2004-11-04

      Completing the other message, my string connection is: "Data Source=S2200DESV;Initial Catalog=transporte;UID=transporte;Pwd=xxx"

      Thanks,
      Andr Ribeiro

       
    • Richard Banks

      Richard Banks - 2004-11-05

      There's no DTD as such.

      The declaration you need in the XML is

      <database name="DBRefName" class="CMsSqlDatabase">
        <parameter name="name" value="transporte" />
        <parameter name="serverName" value="S220DESV" />
        <parameter name="user" value="transporte" />
        <parameter name="password" value="xxx" />
      </database>

      Class declarations reference the DBRefName as follows:
      <class name="MyClass" database="DBRefName"... >
        ...
      </class>

      - Richard

       
    • André Ribeiro

      André Ribeiro - 2004-11-09

      Can you tell me which attributes can be setting at the class node?

      I know the find, proxy and key... Have any other?

      At the associations the saveAutomatic="true" saves the associations too? If I have a Cmodelo.tipoVeiculo and this attribute has a type CTipoVeiculo, the framework saves at the two tables if don't exists or only do an update?

      Thank you,
      Andr Ribeiro

       
      • Richard Banks

        Richard Banks - 2004-11-09

        Sure, here goes...

        Options for Class (based on 2.0 RC1)

        name (required)
        table (required)
        database (required)
        namespace
        superclass
        superclassnamespace
        readonly (true/false)
        modifyonly (true/false)
        owner (db owner)
        sharedtablefield
        sharedtablevalue
        assemblypath
        factory (for interfaces)

        Options for class Attributes:
        name (required)
        column
        key (="primary")
        reference (attribute of superclass)
        find (true/false)
        proxy (true/false, default is true)
        timestamp (true/false)
        identity (true/false)

        Options for Associations:
        fromClass (required)
        toClass (required)
        target (required)
        cardinality (required)
        name (required)
        fromClassNameSpace
        toClassNameSpace
        deleteAutomatic (required, true/false)
        saveAutomatic (required, true/false)
        retrieveAutomatic (required, true/false/lazy)
        inverse (true/false)

        Options for Association Entries:
        fromAttribute
        toAttribute

        Associations with SaveAutomatic="true" will automatically insert database records wherever they are required, and update existing ones.

        - Richard

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.