Click or drag to resize

AdoRelationshipValidationProvider Class

ADO.NET Based Relationship Provider
Inheritance Hierarchy
SystemObject
  SanteDB.Persistence.Data.ServicesAdoRelationshipValidationProvider

Namespace: SanteDB.Persistence.Data.Services
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
public class AdoRelationshipValidationProvider : IRelationshipValidationProvider, 
	IServiceImplementation, IMappedQueryProvider<RelationshipValidationRule>, IAdoPersistenceProvider<RelationshipValidationRule>, 
	IAdoPersistenceProvider, IAdoTrimProvider

The AdoRelationshipValidationProvider type exposes the following members.

Constructors
 NameDescription
Public methodAdoRelationshipValidationProvider DI constructor
Top
Properties
 NameDescription
Public propertyDbType Gets the database type
Public propertyModelType Gets the model type
Public propertyProvider Get the provider
Public propertyQueryPersistence Gets the instance of the query persistence service
Public propertyServiceName Gets the service name
Top
Methods
 NameDescription
Public methodAddValidRelationshipTRelationship Add a valid relationship between sourceClassKey and targetClassKey
Public methodDelete Do an obsolete of the model
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecuteQueryOrm Execute a query for the specified model with query identifier returning the results
Public methodExists True if the object exists in the database
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGet Get the specified object at the specified key
Public methodGetCurrentVersionFilter Apply any special versioning filters on the specified statement
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetRuleByKey Get a relationship directly using the key of the relationship.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetValidRelationshipsTRelationship Get all valid relationships
Public methodGetValidRelationshipsTRelationship(Guid) Get all valid relationship types between sourceClassKey and all targets
Public methodInsert(DataContext, RelationshipValidationRule) Insert the specified object into the database
Public methodInsert(DataContext, IdentifiedData) Insert the specified object into the database
Public methodMapExpressionTReturn Map sort expression
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodQuery Query for filter on context
Public methodQueryRelationships Query for all relationships registered
Public methodRemoveRuleByKey Remove a relationship directly using the key of the relationship.
Public methodRemoveValidRelationshipTRelationship Remove the valid relationship type key between
Public methodToModelInstance Convert result to model
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTouch Touch the specified object (creates a new version or updates the modified time)
Public methodTrim Trim the specified object from the database
Public methodUpdate(DataContext, RelationshipValidationRule) Update the specified object in the database context
Public methodUpdate(DataContext, IdentifiedData) Update the specified object in the database context
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
Remarks
This class allows for the management of validation rules between entities, acts, or entities and acts
See Also