Click or drag to resize
EF Visual Editor

ModelClass Class

DomainClass ModelClass
Inheritance Hierarchy
SystemObject
  ModelElement
    Sawczyn.EFDesigner.EFModelDesignElement
      Sawczyn.EFDesigner.EFModelModelClass

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 ModelClass : DesignElement
Request Example View Source

The ModelClass type exposes the following members.

Properties
  NameDescription
Public propertyAllAttributes
All attributes in the class, including those inherited from base classes
Public propertyAllIdentityAttributeNames
Names of all identity attributes in the inheritance chain
Public propertyAllIdentityAttributes
All identity attributes in the inheritance chain
Public propertyAllPropertyNames
Names of all properties in the class
Public propertyAllRequiredAttributes
All required attributes in the inheritance chain
Public propertyAllSubclasses
Public propertyAllSuperclasses
Public propertyAttributes
Gets a list of Attributes.
Public propertyAutoPropertyDefault
Gets or sets the value of AutoPropertyDefault domain property. Default value for this class's attribute AutoProperty setting
Public propertyBaseClass
Gets or sets the value of BaseClass domain property. Exposes Superclass property in property editor
Public propertyBidirectionalSources
Gets a list of BidirectionalSources.
Public propertyBidirectionalTargets
Gets a list of BidirectionalTargets.
Public propertyComments
Gets a list of Comments. Description for Sawczyn.EFDesigner.EFModel.CommentReferencesSubjects.DesignElement
(Inherited from DesignElement.)
Public propertyConcurrency
Gets or sets the value of Concurrency domain property. Overridden concurrency handling strategy.
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 propertyCustomInterfaces
Gets or sets the value of CustomInterfaces domain property. Optional comma-separated list of interfaces that will be added to the class definition
Public propertyDatabaseSchema
Gets or sets the value of DatabaseSchema domain property. The schema to use for table creation. Overrides default schema for model if present.
Public propertyDbSetName
Gets or sets the value of DbSetName domain property. Name of this class's container variable in the generated context
Public propertyDefaultNamespace
Public propertyDefaultOutputDirectory
Public propertyDescription
Gets or sets the value of Description domain property. Detailed code documentation
Public propertyEffectiveConcurrency
Concurrency type, taking into account the model's default concurrency and any override defined in this class
Public propertyEffectiveNamespace
Namespace for generated code. Takes overrides into account.
Public propertyEffectiveOutputDirectory
Output directory for generated code. Takes overrides into account.
Public propertyFullName
Class name with namespace
Public propertyGenerateCode
Gets or sets the value of GenerateCode domain property. If true (the default), code will be generated for this class. If false, it is assumed to be referenced from another assembly.
Public propertyIdentityAttributeNames
Names of identity attributes defined in this class
Public propertyIdentityAttributes
All identity attributes defined in this class
Public propertyImplementNotify
Gets or sets the value of ImplementNotify domain property. Should this class's properties implement INotifyPropertyChanged by default?
Public propertyIsAbstract
Gets or sets the value of IsAbstract domain property. If true, this will be generated as an abstract class
Public propertyIsDependentType
Gets or sets the value of IsDependentType domain property. Is this a completely dependent type that will only exist associated to another object?
Public propertyModelRoot
Gets or sets ModelRoot. Description for Sawczyn.EFDesigner.EFModel.ModelRootHasClasses.ModelClass
Public propertyName
Gets or sets the value of Name domain property.
Public propertyNamespace
Gets or sets the value of Namespace domain property. Overrides default namespace
Public propertyOutputDirectory
Gets or sets the value of OutputDirectory domain property. Overrides default output directory
Public propertyPartition (Inherited from ModelElement.)
Public propertyRequiredAttributes
All required attributes defined in this class
Public propertySources
Gets a list of Sources.
Public propertyStore (Inherited from ModelElement.)
Public propertySubclasses
Gets a list of Subclasses.
Public propertySummary
Gets or sets the value of Summary domain property. Brief code documentation
Public propertySuperclass
Gets or sets Superclass.
Public propertyTableName
Gets or sets the value of TableName domain property. Name of the database table storing data for this class
Public propertyTargets
Gets a list of Targets.
Public propertyUnidirectionalSources
Gets a list of UnidirectionalSources.
Public propertyUnidirectionalTargets
Gets a list of UnidirectionalTargets.
Top
Methods
  NameDescription
Public methodAllNavigationProperties
All navigation properties including those in superclasses
Public methodAllRequiredNavigationProperties
All the required navigation (1.. cardinality) properties in both this and base classes.
Public methodFindAssociationNamed
Finds the association named by the value specified in the parameter
Public methodFindAttributeNamed
Finds the attribute named by the value specified in the parameter
Public methodGetDisplayText
Public methodGetDomainClass (Inherited from ModelElement.)
Public methodHasAssociationNamed
Determines whether the generated code will have an association property with the name specified in the parameter
Public methodHasAttributeNamed
Determines whether [has attribute named] [the specified identifier].
Public methodHasPropertyNamed
Determines whether the generated code will have a property with the name specified in the parameter
Public methodLocalNavigationProperties
All navigation properties defined in this class
Public methodRequiredNavigationProperties
required navigation (1.. cardinality) properties in this class
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