Haystack XML Files: Table of Contents
Haystack XML Files: Table of Contents
Table 1 is a list of the various XML files that you will find in the XML folder.
Where you find the double question marks (??) is where you substitute the
language or database server you are using. For example, ??_DotNetTypes,
could mean CS_DotNetTypes if you are using C# or VB_DotNetTypes if using
Visual Basic. The same goes for SQL Server and Oracle.
XML File Name
13-2
Description
??_DotNetTypes
Contains information about each .NET data type for the language
you are using.
??_TemplateGroups
Contains the list of all the various templates that are used to
generate data classes, WPF user controls, Silverlight user controls,
ASP.NET user controls, and SQL code.
DatabaseServers
??_DBTypes
??_DBTypesExcludes
Contains information about each database data type that you do not
want to generate a property for. This would be used for large BLOB
or large string types that you might want to load dynamically and not
automatically when you select all columns. This can help with
performance of your .NET application.
??_SPSettings
??_Templates
Contains a list of all the SQL and stored procedure templates that
will be generated when you bring up a table in the Haystack Table
Information screen.
Prefixes
ReservedWords
You will find the schema files for each of the above XML files in the
[InstallFolder]\Haystack\Xsd folder.
13-3
Description
DotNetType
LanguageType
GenericType
The generic type for this .NET type. Examples are StringType,
NumericType, BinaryType, etc.
Prefix
IsNullableType
DefaultValue
ValueForNull
What value you want to return if the value read from the database is a
null.
ConvertMethod
GetNetTypeMethod
Description
GroupName
TemplateFileName
The name of the xml file that holds the list of templates to generate.
IsSelected
Description
Name
ProviderName
DBDataTypesFile
DBDataTypesExcludeFile
13-4
Description
Name
Code
DotNetTypesFile
TemplateGroupFile
Self
TrueValue
FalseValue
LineEnding
Comment
And
Or
NullablePattern
SystemTypeOf
13-5
Description
DBtype
DBTypeNumber
GenericType
MaxLength
Precision
MinScale
MaxScale
UseMaxLength
IsNullable
IncludeSize
IsInsertable
IsUpdatable
IncludeInAuditTracking
DotNetType
DbTypeEnum
Description
DataType
IsSelectable
IsInsertable
IsUpdatable
13-6
Description
SkipWithThisPrefix
RemoveSuffixAfterThisCharacter
Description
EnumName
IsAll
CodeType
DBObjectTypes
RegenOnChange
SQLFileName
SPFileName
SPPrefix
SPSuffix
Description
PrefixToStrip
13-7
Description
Word
ReplaceWith
13-8
13-9
13-10
13-11
Database Templates
DatabaseServers.xml List of databases supported by haystack
??_Templates.xml List of templates for dynamic SQL and stored
procedure
??_DBTypes List of database data types and how they relate to .NET
data types
??_DBTypesExclude List of database data types that you do not wish to
generate properties for. These are typically large BLOB or large string types
that you will only want to retrieve via specialized code
??_SPSettings stored procedure settings
13-12
13-13
Summary
In this chapter you learned about the various XML files that make up the
Haystack code generator.
Chapter Index
.
.NET Language XML Files, 13-8
D
Database Servers and SQL Generation
XML Files, 13-10
Database Servers XML File, 13-9
DatabaseServers XML File, 13-4
DBTypes XML File, 13-6
DBTypesExcludes XML File, 13-6
DotNetTypes XML File, 13-3
H
Haystack XML Files, 13-2
L
Languages XML File, 13-5
O
Overview of Haystack XML Files, 13-2
13-14
P
Prefixes XML File, 13-7
R
Reason for XML Files, 13-3
Relationships between XML Files, 13-8
ReservedWords XML File, 13-8
S
SPSettings XML File, 13-7
T
Template Group XML Files, 13-9
TemplateGroups XML File, 13-4
Templates XML File, 13-7
X
XML Files for Haystack, 13-2
XML Folder, 13-2
XML Relationships, 13-8
XSD Files, 13-2
XSD Folder, 13-3