Click or drag to resize
EF Visual Editor

ModelAttribute Class

DomainClass ModelAttribute An attribute of a class.
Inheritance Hierarchy
SystemObject
  ModelElement
    Sawczyn.EFDesigner.EFModelModelAttribute

Namespace:  Sawczyn.EFDesigner.EFModel
Assembly:  Sawczyn.EFDesigner.EFModel.Dsl (in Sawczyn.EFDesigner.EFModel.Dsl.dll) Version: 2.0.5.3 (2.0.5.3)
Syntax
public class ModelAttribute : ModelElement
Request Example View Source

The ModelAttribute type exposes the following members.

Properties
  NameDescription
Public propertyAutoProperty
Gets or sets the value of AutoProperty domain property. If false, generates a backing field and a partial method to hook getting and setting the property. If true, generates a simple auto property.
Public propertyCLRType
Converts a C# primitive type to a CLR type.
Public propertyColumnName
Gets or sets the value of ColumnName domain property. The name for the table column backing this property
Public propertyColumnType
Gets or sets the value of ColumnType domain property. The data type for the table column backing this property
Public propertyCustomAttributes
Gets or sets the value of CustomAttributes domain property. Any custom attributes to be generated for this element. Will be passed through as entered.
Public propertyDescription
Gets or sets the value of Description domain property. Detailed code documentation
Public propertyDisplayText
Public propertyFQPrimitiveType
Converts the attribute's CLR type to a C# primitive type.
Public propertyIdentityType
Gets or sets the value of IdentityType domain property. If this property is an identity, how the value is generated
Public propertyIndexed
Gets or sets the value of Indexed domain property. Should this attribute create an index in the database?
Public propertyIndexedUnique
Gets or sets the value of IndexedUnique domain property. If indexed, is the index a unique index?
Public propertyInitialValue
Gets or sets the value of InitialValue domain property. Value for attribute when first created
Public propertyIsConcurrencyToken
Gets or sets the value of IsConcurrencyToken domain property. If true, this property serves as the concurrency value for the class
Public propertyIsIdentity
Gets or sets the value of IsIdentity domain property. Does this attribute represent the identity of the object?
Public propertyMaxLength
Gets or sets the value of MaxLength domain property. Maximum length of the string, A positive number will generate a length constraint, negative number means the database maximum (approx. 2GB), and null or 0 for no max length entry (migration traditionally will set the database column to 2000 characters).
Public propertyMinLength
Gets or sets the value of MinLength domain property. Minimum length of the string, 0 for no minimum length
Public propertyModelClass
Gets or sets ModelClass.
Public propertyName
Gets or sets the value of Name domain property. The name of the property. Must be a valid C# symbol.
Public propertyParentModelElement
Gets the parent model element (ModelClass).
Public propertyPartition (Inherited from ModelElement.)
Public propertyPersistent
Gets or sets the value of Persistent domain property. Attribute will be stored in persistent storage
Public propertyPrimitiveType
From internal class System.Data.Metadata.Edm.PrimitiveType in System.Data.Entity. Converts the attribute's CLR type to a C# primitive type.
Public propertyReadOnly
Gets or sets the value of ReadOnly domain property. If true, no setter will be generated. Only valid for transient public properties.
Public propertyRequired
Gets or sets the value of Required domain property. If true, cannot be null (or the default value for the property type, if not nullable)
Public propertySetterVisibility
Gets or sets the value of SetterVisibility domain property. Visibility for property setter; getter is public
Public propertyStore (Inherited from ModelElement.)
Public propertyStringType
Gets or sets the value of StringType domain property. If not empty, will create a standard validation annotation for this attribute.
Public propertySummary
Gets or sets the value of Summary domain property. Brief code documentation
Public propertyTableOverride
Gets or sets the value of TableOverride domain property. Unused - Alternate table to store this attribute. If empty, the class's table is used.
Public propertyType
Gets or sets the value of Type domain property. Type of this attribute
Public propertyVirtual
Gets or sets the value of Virtual domain property. If true, property will be generated with the 'virtual' keyword
Top
Methods
  NameDescription
Public methodGetDomainClass (Inherited from ModelElement.)
Public methodIsValidInitialValue
Tests if the InitialValue property is valid for the type indicated
Public methodStatic memberToCLRType
Converts a C# primitive type to a CLR type.
Public methodStatic memberToPrimitiveType
From internal class System.Data.Metadata.Edm.PrimitiveType in System.Data.Entity. Converts a CLR type to a C# primitive type.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetActiveDiagram (Defined by ModelElementExtensions.)
Public Extension MethodGetCompartment
Gets the named compartment in this element
(Defined by ModelElementExtensions.)
Public Extension MethodGetDisplayText (Defined by ModelElementExtensions.)
Public Extension MethodGetFirstShapeElement (Defined by ModelElementExtensions.)
Public Extension MethodInvalidateDiagrams
Causes all diagrams to redraw
(Defined by ModelElementExtensions.)
Public Extension MethodIsLoading (Defined by ModelElementExtensions.)
Public Extension MethodLocateInDiagram (Defined by ModelElementExtensions.)
Public Extension MethodRedraw (Defined by ModelElementExtensions.)
Top
See Also