Click or drag to resize

GenericLocalRepositoryTEntity Class

Represents a base class for entity repository services
Inheritance Hierarchy

Namespace:  SanteDB.DisconnectedClient.Services.Local
Assembly:  SanteDB.DisconnectedClient.Core (in SanteDB.DisconnectedClient.Core.dll) Version: 2.2.1
Syntax
public class GenericLocalRepository<TEntity> : IRepositoryService, 
	IServiceImplementation, IValidatingRepositoryService<TEntity>, IRepositoryService<TEntity>, IPersistableQueryRepositoryService<TEntity>, 
	IFastQueryRepositoryService<TEntity>, ISecuredRepositoryService, INotifyRepositoryService<TEntity>
where TEntity : IdentifiedData

Type Parameters

TEntity

[Missing <typeparam name="TEntity"/> documentation for "T:SanteDB.DisconnectedClient.Services.Local.GenericLocalRepository`1"]

The GenericLocalRepositoryTEntity type exposes the following members.

Constructors
  NameDescription
Public methodGenericLocalRepositoryTEntity
Initializes a new instance of the GenericLocalRepositoryTEntity class
Top
Properties
  NameDescription
Protected propertyAlterPolicy
Gets the policy for altering
Protected propertyDeletePolicy
Gets the policy required for deleting
Protected propertyQueryPolicy
Gets the policy required for querying
Protected propertyReadPolicy
Gets the policy required for reading
Public propertyServiceName
Get the service name
Protected propertyWritePolicy
Gets the policy required for writing
Top
Methods
  NameDescription
Protected methodDemand
Demand permission
Public methodDemandAlter
Demand alter permission
Public methodDemandDelete
Demand delete permission
Public methodDemandQuery
Demand query
Public methodDemandRead
Demand read
Public methodDemandWrite
Demand write permission
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind(ExpressionFuncTEntity, Boolean)
Perform a simple find
Public methodFind(ExpressionFuncTEntity, Boolean, Int32, NullableInt32, Int32, ModelSortTEntity)
Perform a normal find
Public methodFind(ExpressionFuncTEntity, Boolean, Int32, NullableInt32, Int32, Guid, ModelSortTEntity)
Find with stored query parameters
Public methodFindFast
Perform a faster version of the query for an object
Public methodGet(Guid)
Get the specified key
Public methodGet(Guid, Guid)
Get specified data from persistence
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert
Performs insert of object
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodObsolete
Obsolete the specified data
Public methodSave
Save the specified entity (insert or update)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validate a patient before saving
Top
Events
Fields
  NameDescription
Protected fieldm_traceSource
Trace source
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 MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also