DbModel MembersEasyQuery WinForms API Reference

The DbModel type exposes the following members.
Constructors

  NameDescription
Public methodDbModel 
Initializes a new instance of the DbModel class.
Protected methodDbModel(SerializationInfo, StreamingContext)
Initializes a new instance of the DbModel class.
Back to Top
Methods

  NameDescription
Protected methodAddDefaultEditors
Adds the default value editors.
(Inherited from DataModel.)
Public methodAddDefaultOperators
Adds the default operators into model
(Inherited from DataModel.)
Protected methodAddOperatorToEntity
Adds the operator to all suitable attributes in specified entity.
(Inherited from DataModel.)
Public methodAddOperatorToSuitedAttributes
Adds the operator to all suitable (by data type) attributes.
(Inherited from DataModel.)
Public methodAddUpdateOperator
Adds or update an operator.
(Inherited from DataModel.)
Public methodAssignEntityAttrID
Assigns the default ID for entity attribute.
(Overrides DataModel AssignEntityAttrID(EntityAttr).)
Public methodAutoLinking
This procedure finds the links between tables listed in the model (based on field names and types) and then add found links into the Links list.
Public methodCalcEntityPath
Finds a path between two entities and return it to caller as list of Enityt objects. Returns null if there is no any path between specified entities.
Public methodCalcPath
CalcPath method finds a path between tables and return it to caller or returns null if there is no any path between specified tables.
Public methodClear
Clears this instance.
(Overrides DataModel Clear .)
Public methodCreateEntity
Creates the entity.
(Overrides DataModel CreateEntity .)
Public methodCreateEntityAttr
Creates the entity attribute. Used for creating entity attributes while building the model
(Overrides DataModel CreateEntityAttr .)
Protected methodCreateNullAttribute
Creates the null attribute.
(Overrides DataModel CreateNullAttribute .)
Public methodCreateNullOperator
Creates the 'null' operator - a special operator which is used when a real operator can't be found (e.g. wrong ID)
(Overrides DataModel CreateNullOperator .)
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
(Overrides DataModel CreateOperator .)
Public methodCreateOperator(String, String, String, String)
Creates an instance of Operator.
(Overrides DataModel CreateOperator(String, String, String, String).)
Protected methodCreateRootEntity
Creates the root entity. This method can be overriden in descendant classes to retrun the object of appropriate class (e.g. DbEntity).
(Overrides DataModel CreateRootEntity .)
Protected methodDeleteOperator
Deletes the operator from the model.
(Inherited from DataModel.)
Protected methodDeleteOperatorFromEntity
Deletes the operator from any attribute of specified entity (and all its sub-entities).
(Inherited from DataModel.)
Protected methodDeserialize
Deserializes the DataModel object. Can be overridden in descendant classes to support deserialization
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodExcludeFieldsFromExpr
Excludes field references from some SQL expression.
Public methodFillByDataTable
Fills the DbModel by database table represented by OnlineDataTable object.
Public methodFillByDbGate(DbGate, FillModelOptions)
Fills the model by database gate.
Public methodFillByDbGate(DbGate, List String , FillModelOptions)
Fills the model by database gate.
Protected methodOnlineFinalize
Releases unmanaged resources and performs other cleanup operations before the OnlineComponent is reclaimed by garbage collection.
(Inherited from OnlineComponent.)
Public methodFindLinkByEntities
Finds the link by 2 entities.
Public methodGetAttributeByID
Gets the attribute by its ID.
(Inherited from DataModel.)
Public methodGetCollectionName
Used to get the name of the collection in context
(Inherited from DataModel.)
Public methodGetDefaultOperatorsForDataType
Returns the list of default operators for some data type
(Inherited from DataModel.)
Public methodGetDefaultUICAttribute
Returns the first attribute in the Root entity with UseInConditions set to true. This attribute is shown by default for new condition.
(Overrides DataModel GetDefaultUICAttribute .)
Public methodGetDefaultUIRAttribute 
Returns the first attribute in the Root entity with UseInResult set to true. This attribute is shown by default for new column.
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Public methodGetEdgeInfo
Gets the information about some edge in entity graph (see EntityGraph for details).
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Protected methodGetNextEntityAttrID
Gets the next free number for building virtual entity attribute ID.
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Public methodOnlineInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Protected methodInitModelLoading
Inits the model loading.
(Overrides DataModel InitModelLoading .)
Public methodListDefaultOperatorsForDataType
Fills the list with default operators for some data type
(Inherited from DataModel.)
Public methodLoadFromConnection
Populates model by information from database connection.
Public methodLoadFromContext(Type)
Loads model from context class.
(Inherited from DataModel.)
Public methodLoadFromContext(Type, DataModel ContextLoadingOptions)
Loads model from context class.
(Inherited from DataModel.)
Public methodLoadFromDbml
Loads the model from DBML file (Entity Framework model format).
Public methodLoadFromEdmx(String)
Loads the model from EDMX file (Entity Framework model format).
Public methodLoadFromEdmx(XDocument)
Loads model from EDMX document.
Public methodLoadFromFile(String)
Loads data model from file.
(Inherited from DataModel.)
Public methodLoadFromFile(String, DataModel RWOptions)
Loads data model from file.
(Inherited from DataModel.)
Public methodLoadFromStream(Stream)
Loads data model from stream.
(Inherited from DataModel.)
Public methodLoadFromStream(Stream, DataModel RWOptions)
Loads data model from stream.
(Inherited from DataModel.)
Public methodLoadFromString(String)
Loads data model from string.
(Inherited from DataModel.)
Public methodLoadFromString(String, DataModel RWOptions)
Loads data model from string.
(Inherited from DataModel.)
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 .
(Inherited from DataModel.)
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 .
(Inherited from DataModel.)
Public methodLoadFromXmlReader(XmlReader)
Loads data model from XML reader.
(Inherited from DataModel.)
Public methodLoadFromXmlReader(XmlReader, DataModel RWOptions)
Loads data model from XML reader.
(Inherited from DataModel.)
Protected methodLoadNode
Loads the root node of the model. Can be overriden for loading additional root nodes in DataModel's descendants
(Overrides DataModel LoadNode(XmlReader, DataModel RWOptions).)
Protected methodLoadValueEditorNode
Loads the value editor definition from XML.
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Protected methodOnMacroRequest
Raises the MacroRequest event.
(Inherited from DataModel.)
Protected methodOnModelChanged
Called after the model has been changed.
(Overrides DataModel OnModelChanged .)
Protected methodOnModelLoaded
Called after the model has been loaded from some file or string.
(Overrides DataModel OnModelLoaded .)
Protected methodRefillAggrFunctionList
Refills the list of aggregate functions.
(Inherited from DataModel.)
Public methodRefreshResources
Re-loads the string values from Texts list.
(Inherited from DataModel.)
Protected methodSaveAttributes
Saves the attributes of the model. Can be overriden for storing additional attributes
(Inherited from DataModel.)
Protected methodSaveCustomInfoNode
Saves the custom info node.
(Inherited from DataModel.)
Protected methodSaveDbParamsNode
Saves the DbParams node.
Protected methodSaveLinksNode
Saves links using OnlineXmlWriter object.
Protected methodSaveNodes
Saves the root nodes of the model. Can be overriden for storing additional nodes
(Overrides DataModel SaveNodes(XmlWriter, DataModel RWOptions).)
Protected methodSaveTablesNode
Saves tables using OnlineXmlWriter object.
Public methodSaveToDictionary
Saves the model into Dictionary object. Useful for JSON serialization.
(Inherited from DataModel.)
Public methodSaveToFile(String)
Saves data model to file.
(Inherited from DataModel.)
Public methodSaveToFile(String, DataModel RWOptions)
Saves data model to file.
(Inherited from DataModel.)
Public methodSaveToStream(Stream)
Saves data model XML to stream.
(Inherited from DataModel.)
Public methodSaveToStream(Stream, DataModel RWOptions)
Saves data model XML to stream.
(Inherited from DataModel.)
Public methodSaveToString 
Saves data model specification to string object.
(Inherited from DataModel.)
Public methodSaveToString(DataModel RWOptions)
Saves data model specification to string object.
(Inherited from DataModel.)
Public methodSaveToXmlWriter(XmlWriter)
Saves data model specification using XmlWriter.
(Inherited from DataModel.)
Public methodSaveToXmlWriter(XmlWriter, DataModel RWOptions)
Saves data model specification using XmlWriter.
(Inherited from DataModel.)
Protected methodSetProgress
Set the progress to the specified position.
(Inherited from DataModel.)
Protected methodSetProgressMinMax
Sets the minimum and maximum of progress indicator.
(Inherited from DataModel.)
Public methodSetTableCategory
Sets the category of the table. Creates a new category if the specified one does not exist yet.
Public methodSortEntities
Sorts all entities and their attributes alphabetically.
(Inherited from DataModel.)
Protected methodSortEntityContent
Sorts the content of one entity alphabetically. This function is called by SortEntities  method
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Public methodUpdateOperatorsTexts
Loads the text for all default operators from resources.
(Inherited from DataModel.)
Public methodUpdateOperatorTexts
Loads the texts for one operator from resources (Texts storage actually)
(Inherited from DataModel.)
Back to Top
Fields

  NameDescription
Public fieldAggrFunctions
List of aggregate functions.
(Inherited from DataModel.)
Protected fieldcustomInfo
User-defined additional information about the model
(Inherited from DataModel.)
Protected fielddefQueryFilePath
File path for default query
(Inherited from DataModel.)
Protected fielddescription
Description of the model
(Inherited from DataModel.)
Public fieldDMEOptions
A dictionary that contains different Data Model Editor options associated with this model
(Inherited from DataModel.)
Protected fieldentityRoot
Main entity of the model
(Inherited from DataModel.)
Protected fieldfilePath
Represents model file location, if model is loaded from file
(Inherited from DataModel.)
Protected fieldformatVersion
Format version of data model definition files
(Inherited from DataModel.)
Public fieldLinks
List of DbModel links between tables.
Public fieldMacros
List of macro values
(Inherited from DataModel.)
Protected fieldmaxEntAttrID
Number of virtual attributes
(Inherited from DataModel.)
Protected fieldmodelName
User-defined name of the model
(Inherited from DataModel.)
Protected fieldmodelVersion
Version of the model
(Inherited from DataModel.)
Protected fielduseResourcesForOperators
Indicates whether resources will be used for getting caption and format of the Operator
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Public propertyDbContext
This property is set after using LoadFromDbContext method from EF extensions
Public propertyDbParams
Gets the DbParameters object that represents different options of database linked with current data model.
Public propertyDefaultPreciseDateEditor
Gets the default "precise date" editor.
(Inherited from DataModel.)
Public propertyDefaultPreciseTimeEditor
Gets the default "precise time" editor.
(Inherited from DataModel.)
Public propertyDefaultTextEditor
Gets the default text editor.
(Inherited from DataModel.)
Public propertyDefQueryFilePath
Gets or sets the file path for default (blank) query used with this data model.
(Inherited from DataModel.)
Public propertyDescription
Gets or sets the description.
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Public propertyEntityContainerName
Gets the name of the default entity container. This value is used for the models created from EDMX files (Entity Framework models)
Public propertyEntityGraph
Gets the entity graph.
(Inherited from DataModel.)
Public propertyEntityLinks
Gets the entity links.
Public propertyEntityRoot
The root entity of data model entities.
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Public propertyFormatVersion
Gets the version of data model format.
(Inherited from DataModel.)
Public propertyID
Gets or sets the ID of the model.
(Inherited from DataModel.)
Public propertyIsEmpty
Gets a value indicating whether this model is empty (doesn't contain any entity or attribute) or not.
(Inherited from DataModel.)
Public propertyIsLoadedFromContext
Gets a value indicating whether this instance is loaded from a Context object.
(Inherited from DataModel.)
Public propertyIsLoadedFromDbContext
Gets or sets a value indicating whether this instance is loaded from a DbContext object.
Public propertyModelName
Gets or sets the user-defined name of the model.
(Inherited from DataModel.)
Public propertyModelVersion
Gets the model version.
(Inherited from DataModel.)
Public propertyNavPropNames
Gets the navigation property names.
(Inherited from DataModel.)
Public propertyNullAttribute
Gets the Null or "unrecognized" attribute.
(Inherited from DataModel.)
Public propertyNullOperator
Gets the null operator.
(Inherited from DataModel.)
Public propertyOperators
List of data model operators.
(Inherited from DataModel.)
Public propertyProgressIndicator
Gets or sets the progress indicator object. This property is used to show progress for some time consuming operations performed inside model
(Inherited from DataModel.)
Public propertyOnlineSite
Gets or sets the OnlineISite of the OnlineComponent.
(Inherited from OnlineComponent.)
Public propertyStoreDbParams
Gets or sets a value indicating whether DbParams will be store in data model definition file.
Public propertyTableCategories
Gets the list of table categories.
Public propertyTables
Gets list of data model tables.
Public propertyTexts
Gets an instance of TextStorage object which holds all text resources used in this assembly
(Inherited from DataModel.)
Public propertyUseResourcesForOperators
Gets or sets a value indicating whether we get the main parameters (caption and format) for default operators from resources.
(Inherited from DataModel.)
Back to Top
Events

  NameDescription
Public eventAggrFuncListChanged
Occurs when the list of available aggregate functions was changed.
(Inherited from DataModel.)
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.
(Inherited from DataModel.)
Public eventModelChanged
Occurs when the model is changed.
(Inherited from DataModel.)
Back to Top
See Also