DataModel MembersEasyQuery ASP.NET API Reference

The DataModel type exposes the following members.
Constructors

  NameDescription
Public methodDataModel 
Initializes a new instance of the DataModel class.
Protected methodDataModel(SerializationInfo, StreamingContext)
Initializes a new instance of the DataModel class. Used in serialization/deserialization process. See also GetObjectData.
Back to Top
Methods

  NameDescription
Protected methodAddDefaultEditors
Adds the default value editors.
Public methodAddDefaultOperators
Adds the default operators into model
Protected methodAddOperatorToEntity
Adds the operator to all suitable attributes in specified entity.
Public methodAddOperatorToSuitedAttributes
Adds the operator to all suitable (by data type) attributes.
Public methodAddUpdateOperator
Adds or update an operator.
Public methodAssignEntityAttrID
Assigns the default ID for entity attribute.
Public methodClear
Clears this instance.
Public methodCreateEntity
Creates the entity.
Public methodCreateEntityAttr
Creates the entity attribute. Used for creating entity attributes while building the model
Protected methodCreateNullAttribute
Creates the Null attribute.
Public methodCreateNullOperator
Creates the null operator. U
Public methodOnlineCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from OnlineMarshalByRefObject.)
Public methodCreateOperator 
Creates the operator. Used for creating objects while building the model
Public methodCreateOperator(String, String, String, String)
Creates the operator by overloaded constructor. Used for creating objects while building the model
Protected methodCreateRootEntity
Creates the root entity. This method can be overriden in descendant classes to retrun the object of appropriate class (e.g. DbEntity).
Protected methodDeleteOperator
Deletes the operator from the model.
Protected methodDeleteOperatorFromEntity
Deletes the operator from any attribute of specified entity (and all its sub-entities).
Protected methodDeserialize
Deserializes the DataModel object. Can be overridden in descendant classes to support deserialization
Public methodOnlineDispose 
Releases all resources used by the OnlineComponent.
(Inherited from OnlineComponent.)
Protected methodOnlineDispose(Boolean)
Releases the unmanaged resources used by the OnlineComponent and optionally releases the managed resources.
(Inherited from OnlineComponent.)
Public methodEnsureEditorExistance
Ensures the existance of value editor.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Releases unmanaged resources and performs other cleanup operations before the OnlineComponent is reclaimed by garbage collection.
(Inherited from OnlineComponent.)
Public methodGetAttributeByID
Gets the attribute by its ID.
Public methodGetCollectionName
Used to get the name of the collection in context
Public methodGetDefaultOperatorsForDataType
Returns the list of default operators for some data type
Public methodGetDefaultUICAttribute
Returns the first attribute in the Root entity with UseInConditions set to true. This attribute is shown by default for new condition.
Public methodGetDefaultUIRAttribute 
Returns the first attribute in the Root entity with UseInResult set to true. This attribute is shown by default for new column.
Public methodGetDefaultUIRAttribute(Boolean)
Returns the first attribute in the Root entity with UseInResult set to true and UseInSorting set to true if needUseInSorting is true. This attribute is shown by default for new column.
Public methodGetEdgeInfo
Gets the information about some edge in entity graph (see EntityGraph for details).
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Public methodGetMacroValue
Gets the value of macro by its ID.
Protected methodGetNextEntityAttrID
Gets the next free number for building virtual entity attribute ID.
Protected methodOnlineGetService
Returns an object that represents a service provided by the OnlineComponent or by its OnlineContainer.
(Inherited from OnlineComponent.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodIncreaseModelVersion
Increases the model version.
Public methodOnlineInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Protected methodInitModelLoading
Inits the model loading.
Public methodListDefaultOperatorsForDataType
Fills the list with default operators for some data type
Public methodLoadFromContext(Type)
Loads model from context class.
Public methodLoadFromContext(Type, DataModel ContextLoadingOptions)
Loads model from context class.
Public methodLoadFromFile(String)
Loads data model from file.
Public methodLoadFromFile(String, DataModel RWOptions)
Loads data model from file.
Public methodLoadFromStream(Stream)
Loads data model from stream.
Public methodLoadFromStream(Stream, DataModel RWOptions)
Loads data model from stream.
Public methodLoadFromString(String)
Loads data model from string.
Public methodLoadFromString(String, DataModel RWOptions)
Loads data model from string.
Public methodLoadFromType(Type)
Loads model from some type (class). All properties of this class with primitive types will be added as attributes of the root entity. All complex type properties - as sub-entities and so on recursively .
Public methodLoadFromType(Type, DataModel ContextLoadingOptions)
Loads model from some type (class). All properties of this class with primitive types will be added as attributes of the root entity. All complex type properties - as sub-entities and so on recursively .
Public methodLoadFromXmlReader(XmlReader)
Loads data model from XML reader.
Public methodLoadFromXmlReader(XmlReader, DataModel RWOptions)
Loads data model from XML reader.
Protected methodLoadNode
Loads the root node of the model. Can be overriden for loading additional root nodes in DataModel's descendants
Protected methodLoadValueEditorNode
Loads the value editor definition from XML.
Protected methodOnlineMemberwiseClone 
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone(Boolean)
Creates a shallow copy of the current OnlineMarshalByRefObject object.
(Inherited from OnlineMarshalByRefObject.)
Protected methodOnAggrFuncListChanged
Raises the [E:AggrFuncListChanged] event.
Protected methodOnMacroRequest
Raises the MacroRequest event.
Protected methodOnModelChanged
Called after the model has been changed. Raises ModelChanged event if defined.
Protected methodOnModelLoaded
Called when the model is loaded (from XML file or string).
Protected methodRefillAggrFunctionList
Refills the list of aggregate functions.
Public methodRefreshResources
Re-loads the string values from Texts list.
Protected methodSaveAttributes
Saves the attributes of the model. Can be overriden for storing additional attributes
Protected methodSaveCustomInfoNode
Saves the custom info node.
Protected methodSaveNodes
Saves the root nodes of the model. Can be overriden for storing additional nodes
Public methodSaveToDictionary
Saves the model into Dictionary object. Useful for JSON serialization.
Public methodSaveToFile(String)
Saves data model to file.
Public methodSaveToFile(String, DataModel RWOptions)
Saves data model to file.
Public methodSaveToStream(Stream)
Saves data model XML to stream.
Public methodSaveToStream(Stream, DataModel RWOptions)
Saves data model XML to stream.
Public methodSaveToString 
Saves data model specification to string object.
Public methodSaveToString(DataModel RWOptions)
Saves data model specification to string object.
Public methodSaveToXmlWriter(XmlWriter)
Saves data model specification using XmlWriter.
Public methodSaveToXmlWriter(XmlWriter, DataModel RWOptions)
Saves data model specification using XmlWriter.
Protected methodSetProgress
Set the progress to the specified position.
Protected methodSetProgressMinMax
Sets the minimum and maximum of progress indicator.
Public methodSortEntities
Sorts all entities and their attributes alphabetically.
Protected methodSortEntityContent
Sorts the content of one entity alphabetically. This function is called by SortEntities  method
Public methodOnlineToString
Returns a OnlineString containing the name of the OnlineComponent, if any. This method should not be overridden.
(Inherited from OnlineComponent.)
Public methodUpdateEntityJoinInfo
Updates the information about some edge (join) in the entity graph. This method adds new edge if it's not defined yet or update the existing one.
Public methodUpdateOperatorsTexts
Loads the text for all default operators from resources.
Public methodUpdateOperatorTexts
Loads the texts for one operator from resources (Texts storage actually)
Back to Top
Fields

  NameDescription
Public fieldAggrFunctions
List of aggregate functions.
Public fieldStatic memberAnyOperatorGroup
Gets the special group which contain any operator
Public fieldStatic memberBoolOperatorGroup
Gets the group which contains the date/time operators (before, after, between, etc.)
Public fieldStatic memberCommonOperatorGroup
Gets the group which contains the common operators (equal, not equal, less than, more than, etc)
Protected fieldcustomInfo
User-defined additional information about the model
Protected fielddefQueryFilePath
File path for default query
Protected fielddescription
Description of the model
Public fieldDMEOptions
A dictionary that contains different Data Model Editor options associated with this model
Protected fieldentityRoot
Main entity of the model
Protected fieldfilePath
Represents model file location, if model is loaded from file
Protected fieldformatVersion
Format version of data model definition files
Public fieldStatic memberLastFormatVersion
Read-only constant that represent the latest format version of data model definition files
Public fieldMacros
List of macro values
Protected fieldmaxEntAttrID
Number of virtual attributes
Protected fieldmodelName
User-defined name of the model
Protected fieldmodelVersion
Version of the model
Public fieldStatic memberOperatorGroups
Gets the list of all predefined operator groups
Public fieldStatic memberOtherOperatorGroup
Gets the group which contains other operators not included in any of the previous group
Public fieldStatic memberStringOperatorGroup
Gets the group which contains the string operators (starts with, contains)
Public fieldStatic memberTimeOperatorGroup
Gets the group which contains the date/time operators (before, after, between, etc.)
Protected fielduseResourcesForOperators
Indicates whether resources will be used for getting caption and format of the Operator
Back to Top
Properties

  NameDescription
Protected propertyOnlineCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from OnlineComponent.)
Public propertyOnlineContainer
Gets the OnlineIContainer that contains the OnlineComponent.
(Inherited from OnlineComponent.)
Public propertyCustomInfo
Gets or sets the custom information associated with data model.
Public propertyDefaultPreciseDateEditor
Gets the default "precise date" editor.
Public propertyDefaultPreciseTimeEditor
Gets the default "precise time" editor.
Public propertyDefaultTextEditor
Gets the default text editor.
Public propertyDefQueryFilePath
Gets or sets the file path for default (blank) query used with this data model.
Public propertyDescription
Gets or sets the description.
Protected propertyOnlineDesignMode
Gets a value that indicates whether the OnlineComponent is currently in design mode.
(Inherited from OnlineComponent.)
Public propertyEditors
List of data model operators.
Public propertyEntityGraph
Gets the entity graph.
Public propertyEntityRoot
The root entity of data model entities.
Protected propertyOnlineEvents
Gets the list of event handlers that are attached to this OnlineComponent.
(Inherited from OnlineComponent.)
Public propertyFilePath
Gets the model file path. It is automatically assigned when you use LoadFromFile method.
Public propertyFormatVersion
Gets the version of data model format.
Public propertyID
Gets or sets the ID of the model.
Public propertyIsEmpty
Gets a value indicating whether this model is empty (doesn't contain any entity or attribute) or not.
Public propertyIsLoadedFromContext
Gets a value indicating whether this instance is loaded from a Context object.
Public propertyModelName
Gets or sets the user-defined name of the model.
Public propertyModelVersion
Gets the model version.
Public propertyNavPropNames
Gets the navigation property names.
Public propertyNullAttribute
Gets the Null or "unrecognized" attribute.
Public propertyNullOperator
Gets the null operator.
Public propertyOperators
List of data model operators.
Public propertyProgressIndicator
Gets or sets the progress indicator object. This property is used to show progress for some time consuming operations performed inside model
Public propertyOnlineSite
Gets or sets the OnlineISite of the OnlineComponent.
(Inherited from OnlineComponent.)
Public propertyTexts
Gets an instance of TextStorage object which holds all text resources used in this assembly
Public propertyUseResourcesForOperators
Gets or sets a value indicating whether we get the main parameters (caption and format) for default operators from resources.
Back to Top
Events

  NameDescription
Public eventAggrFuncListChanged
Occurs when the list of available aggregate functions was changed.
Public eventOnlineDisposed
Occurs when the component is disposed by a call to the OnlineDispose  method.
(Inherited from OnlineComponent.)
Public eventMacroRequest
This event is raised when a value for some macro is requested.
Public eventModelChanged
Occurs when the model is changed.
Back to Top
See Also