Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Properties on the Dbml.cst template:

Info

The EnumList, IgnoreList and IncludeList properties use a list of Regular Expressions that match the the full name of a Table, View, Command.

Here is a common Regex pattern that will match a table by name (E.G., ^owner.TableName$). For Example, the following regex (^dbo.Account$) will match the Account table.

We recommend using Expresso to build your regular expression lists.

Property

Description

1.Database

 

CleanExpression

List of regular expressions to clean table, view, column and procedure names. Â Any matched text found will be removed from the name.

EnumList

List of regular expressions to identify an Enum Table.

IgnoreList

List of regular expressions used to ignore tables, views and procedures when generating mapping.

IncludeListList of regular expressions used to include tables, views and procedures when generating mapping. When this property is set the IgnoreList property will be ignored and only tables included in this list will be used.

IncludeFunctions

Include stored procedures and user functions in mapping.

IncludeViews

Include views in mapping.

SourceDatabase

The source database to generate the dbml file for.

2.Class

 

ContextNamespace

The namespace to use for the context class file.

EntityBase

The base class for the entity.

EntityNamespace

The namespace to use for the entity class files.

IncludeDeleteOnNull

Templates will generated DeleteOnNull Attribute for Associations.

Naming Conventions

A Menu of options for naming objects in the dbml.

AssociationNaming

Add a list suffix or pluralize associations to an object.

EntityNaming

Generate entity objects in singular or plural form.

TableNaming

The table naming convention followed in the source database.

3.Enum

 

NameColumn

List of regular expressions to identify an Enum Table's Name Column.

DescriptionColumm

List of regular expressions to identify an Enum Table's Description Column.

4.Mapping

 

DbmlFile

The path to the dbml file to generate.