cs Deserts.xml
The SQLMetal takes all the information from the XML file and generates the class
file. The XML file acts as the metadata for generating the class file. It contains
attributes that can be set to change the behaviour of the tables or columns. For
example, the attributes for the columns are as follows:
Name = "Column-Name"
Hidden = "true|false"
Access = "public|private|internal|protected"
Property = "property-name"
Chapter 4
[ 121 ]
DBType = "database-type"
Type = "CLR-type"
Nullable = "true|false"
IsIdentity = "true|false"
IsAutoGen = "true|false"IsVersion = "true|false"
IsReadOnly = "true|false"
UpdateCheck = "Always|Never|WhenChanged" />
The Table has attributes such as:
Name = "Table-Name"
Hidden = "true|false"
Access = "public|internal"
Class = "element-class-name"
Property = "context-or-schema-property-name" >
Some of the attributes are very common to many of the elements and some are
specific to some elements. For example, Name and Hidden are very common to all
the elements.
Pages:
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201