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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
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.
Completing the other message, my string connection is: "Data Source=S2200DESV;Initial Catalog=transporte;UID=transporte;Pwd=xxx"
Thanks,
Andr Ribeiro
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
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
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