# ModelBuilders - Built-in Attributes

Xenial.Framework ModelBuilders have extension methods for almost all of the built-in attributes of XAF.

This table below maps the ModelBuilder extentions to the corresponding implementation in XAF.

TIP

If you are missing an attribute let us know (opens new window)!
You can also implement your own with little effort.

# Class Attributes

# Behavior

Xenial Extension XAF Attribute
WithDefaultClassOptions() DefaultClassOptionsAttribute (opens new window)
HasCaption() ModelDefaultAttribute("Caption") (opens new window)
HasImage() ImageNameAttribute (opens new window)
HasDefaultProperty() DefaultPropertyAttribute
XafDefaultPropertyAttribute (opens new window)
HasFriendlyKeyProperty() FriendlyKeyPropertyAttribute (opens new window)
HasNavigationItem() NavigationItemAttribute (opens new window)
HasObjectCaptionFormat() ObjectCaptionFormatAttribute (opens new window)
IsCreatableItem() CreatableItemAttribute (opens new window)
IsVisibleInReports() VisibleInReportsAttribute(true) (opens new window)
IsNotVisibleInReports() VisibleInReportsAttribute(false) (opens new window)
IsVisibleInDashboards() VisibleInDashboardsAttribute(true) (opens new window)
IsNotVisibleInDashboards() VisibleInDashboardsAttribute(false) (opens new window)
WithDefaultListViewOptions() DefaultListViewOptionsAttribute (opens new window)

# ModelDefault

Xenial Extension XAF Attribute
WithModelDefault() ModelDefaultAttribute (opens new window)
HasDefaultDetailViewImage() ModelDefaultAttribute("DefaultDetailViewImage") (opens new window)
HasDefaultListViewImage() ModelDefaultAttribute("DefaultListViewImage") (opens new window)
HasDefaultDetailViewId() ModelDefaultAttribute("DefaultDetailView") (opens new window)
HasDefaultListViewId() ModelDefaultAttribute("DefaultListView") (opens new window)
HasDefaultLookupListViewId() ModelDefaultAttribute("DefaultLookupListView") (opens new window)
ForListViewsDefaultAllowEdit() ModelDefaultAttribute("DefaultListViewAllowEdit") (opens new window)
ForListViewsDefaultShowAutoFilterRow() ModelDefaultAttribute("DefaultListViewShowAutoFilterRow") (opens new window)
ForListViewsDefaultShowFindPanel() ModelDefaultAttribute("DefaultListViewShowFindPanel") (opens new window)
ForListViewsDefaultMasterDetailMode() ModelDefaultAttribute("DefaultListViewMasterDetailMode") (opens new window)
HasDefaultLookupEditorMode() ModelDefaultAttribute("DefaultLookupEditorMode") (opens new window)
ForListViewsDefaultNewItemRowPosition() ModelDefaultAttribute("DefaultListViewNewItemRowPosition") (opens new window)
AllowingEdit() ModelDefaultAttribute("AllowEdit", "True") (opens new window)
NotAllowingEdit() ModelDefaultAttribute("AllowEdit", "False") (opens new window)
AllowingNew() ModelDefaultAttribute("AllowNew", "True") (opens new window)
NotAllowingNew() ModelDefaultAttribute("AllowNew", "False") (opens new window)
AllowingDelete() ModelDefaultAttribute("AllowDelete", "True") (opens new window)
NotAllowingDelete() ModelDefaultAttribute("AllowDelete", "False") (opens new window)
AllowingEverything() AllowingDelete
AllowingEdit
AllowingNew
AllowingNothing() NotAllowingDelete
NotAllowingEdit
NotAllowingNew

# Xenial specific

Xenial Extension XAF Attribute
IsSingleton() SingletonAttribute
NotAllowingDelete
NotAllowingNew

# Property Attributes

# Behavior

Xenial Extension XAF Attribute
HasCaption() ModelDefaultAttribute("Caption") (opens new window)
ImmediatePostsData() ImmediatePostDataAttribute (opens new window)
HasIndex() IndexAttribute (opens new window)
HasEditMask() ModelDefaultAttribute("EditMask") (opens new window)
HasDisplayFormat() ModelDefaultAttribute("DisplayFormat") (opens new window)
HasTooltip() ModelDefaultAttribute("ToolTip") (opens new window)
HasTooltipTitle() ModelDefaultAttribute("ToolTipTitle") (opens new window)
HasTooltipIconType() ModelDefaultAttribute("ToolTipIconType") (opens new window)
HasNullText() ModelDefaultAttribute("NullText") (opens new window)
WithModelDefault ModelDefaultAttribute (opens new window)
AllowingEdit ModelDefaultAttribute("AllowEdit", "True") (opens new window)
NotAllowingEdit ModelDefaultAttribute("AllowEdit", "False") (opens new window)
AllowingNew ModelDefaultAttribute("AllowNew", "True")
NotAllowingNew ModelDefaultAttribute("AllowNew", "False")
AllowingDelete ModelDefaultAttribute("AllowDelete", "True")
NotAllowingDelete ModelDefaultAttribute("AllowDelete", "False")
AllowingEverything() AllowingDelete
AllowingEdit
AllowingNew
AllowingNothing() NotAllowingDelete
NotAllowingEdit
NotAllowingNew
UsingEditorAlias EditorAliasAttribute (opens new window)
UsingPropertyEditor ModelDefaultAttribute("PropertyEditorType") (opens new window)
IsVisibleInDetailView VisibleInDetailViewAttribute(true) (opens new window)
IsNotVisibleInDetailView VisibleInDetailViewAttribute(false) (opens new window)
IsVisibleInListView VisibleInListViewAttribute(true) (opens new window)
IsNotVisibleInListView VisibleInListViewAttribute(false) (opens new window)
IsVisibleInLookupListView VisibleInLookupListViewAttribute(true) (opens new window)
IsNotVisibleInLookupListView VisibleInLookupListViewAttribute(false) (opens new window)
IsVisibleInAnyView() IsVisibleInDetailView
IsVisibleInListView
IsVisibleInLookupListView
IsNotVisibleInAnyView() IsNotVisibleInDetailView
IsNotVisibleInListView
IsNotVisibleInLookupListView

# Domain-Extensions string

Xenial Extension XAF Attribute
UsingStringPropertyEditor EditorAliasAttribute("StringPropertyEditor") (opens new window)
UsingRichTextPropertyEditor EditorAliasAttribute("StringPropertyEditor") (opens new window)
UsingCriteriaPropertyEditor EditorAliasAttribute("CriteriaPropertyEditor") (opens new window)
CriteriaOptionsAttribute (opens new window)
UsingExtendedCriteriaPropertyEditor EditorAliasAttribute("ExtendedCriteriaPropertyEditor") (opens new window)
CriteriaOptionsAttribute (opens new window)
UsingPopupCriteriaPropertyEditor EditorAliasAttribute("PopupCriteriaPropertyEditor") (opens new window)
CriteriaOptionsAttribute (opens new window)
IsPassword ModelDefaultAttribute("IsPassword", "True") (opens new window)
WithPredefinedValues ModelDefaultAttribute("PredefinedValues") (opens new window)

# Domain-Extensions bool & bool?

Xenial Extension XAF Attribute
UsingBooleanPropertyEditor EditorAliasAttribute("BooleanPropertyEditor") (opens new window)
WithCaptions CaptionsForBoolValuesAttribute (opens new window)
WithImages ImagesForBoolValuesAttribute (opens new window)

# Domain-Extensions int & int?

Xenial Extension XAF Attribute
UsingIntegerPropertyEditor EditorAliasAttribute("IntegerPropertyEditor") (opens new window)

# Domain-Extensions decimal & decimal?

Xenial Extension XAF Attribute
UsingDecimalPropertyEditor EditorAliasAttribute("DecimalPropertyEditor") (opens new window)

# Domain-Extensions double & double?

Xenial Extension XAF Attribute
UsingDoublePropertyEditor EditorAliasAttribute("DoublePropertyEditor") (opens new window)

# Domain-Extensions float & float?

Xenial Extension XAF Attribute
UsingFloatPropertyEditor EditorAliasAttribute("FloatPropertyEditor") (opens new window)

# Domain-Extensions long & long?

Xenial Extension XAF Attribute
UsingLongPropertyEditor EditorAliasAttribute("IntegerPropertyEditor") (opens new window)

# Domain-Extensions byte & byte?

Xenial Extension XAF Attribute
UsingBytePropertyEditor EditorAliasAttribute("BytePropertyEditor") (opens new window)

# Domain-Extensions DateTime & DateTime?

Xenial Extension XAF Attribute
UsingDateTimePropertyEditor EditorAliasAttribute("DateTimePropertyEditor") (opens new window)

# Domain-Extensions TimeSpan & TimeSpan?

Xenial Extension XAF Attribute
UsingTimeSpanPropertyEditor EditorAliasAttribute("TimeSpanPropertyEditor") (opens new window)

# Domain-Extensions byte[] & byte[]?

Xenial Extension XAF Attribute
UsingImagePropertyEditor EditorAliasAttribute("ImagePropertyEditor") (opens new window)
ImageEditorAttribute (opens new window)

# Domain-Extensions enum & enum?

Xenial Extension XAF Attribute
UsingEnumPropertyEditor EditorAliasAttribute("EnumPropertyEditor") (opens new window)

# Domain-Extensions object & object?

Xenial Extension XAF Attribute
UsingDetailPropertyEditor EditorAliasAttribute("DetailPropertyEditor") (opens new window)
UsingLookupPropertyEditor EditorAliasAttribute("LookupPropertyEditor") (opens new window)
UsingObjectPropertyEditor EditorAliasAttribute("ObjectPropertyEditor") (opens new window)
UsingDefaultPropertyEditor EditorAliasAttribute("DefaultPropertyEditor") (opens new window)

# Domain-Extensions Type & Type?

Xenial Extension XAF Attribute
UsingTypePropertyEditor EditorAliasAttribute("TypePropertyEditor") (opens new window)
UsingVisibleInReportsTypePropertyEditor EditorAliasAttribute("VisibleInReportsTypePropertyEditor") (opens new window)

# Domain-Extensions System.Drawing.Color & System.Drawing.Color?

Xenial Extension XAF Attribute
UsingColorPropertyEditor EditorAliasAttribute("ColorPropertyEditor") (opens new window)