DataModel MethodsEasyQuery ASP.NET API Reference
The DataModel type exposes the following members.
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
See Also