Click or drag to resize

PersonPersistenceService Class

Person persistence service
Inheritance Hierarchy
System.Object
  SanteDB.DisconnectedClient.SQLite.SQLitePersistenceServiceBase<Person>
    SanteDB.DisconnectedClient.SQLite.Persistence.IdentifiedPersistenceService<Person, DbPerson, DbPerson.QueryResult>
      SanteDB.DisconnectedClient.SQLite.Persistence.EntityDerivedPersistenceService<Person, DbPerson, DbPerson.QueryResult>
        SanteDB.DisconnectedClient.SQLite.Persistence.PersonPersistenceService

Namespace:  SanteDB.DisconnectedClient.SQLite.Persistence
Assembly:  SanteDB.DisconnectedClient.SQLite (in SanteDB.DisconnectedClient.SQLite.dll) Version: 2.2.1
Syntax
public class PersonPersistenceService : EntityDerivedPersistenceService<Person, DbPerson, DbPerson.QueryResult>

The PersonPersistenceService type exposes the following members.

Constructors
  NameDescription
Public methodPersonPersistenceService
Initializes a new instance of the PersonPersistenceService class
Top
Properties
Methods
  NameDescription
Protected methodAppendOrderByStatement
Append order by statement
(Inherited from IdentifiedPersistenceService<TModel, TDomain, TQueryResult>.)
Protected methodBeforeInsertDomainObject
Before inserting an instance
(Inherited from IdentifiedPersistenceService<TModel, TDomain, TQueryResult>.)
Protected methodCacheConvert
Do cache convert
(Inherited from EntityDerivedPersistenceService<TModel, TData, TQueryResult>.)
Public methodCount
Perform a count
(Inherited from SQLitePersistenceServiceBase<TData>.)
Protected methodCreateConnection
Creates the connection.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Protected methodCreateReadonlyConnection
Create readonly connection
(Inherited from SQLitePersistenceServiceBase<TData>.)
Protected methodCurrentUserUuid
Get the current user UUID.
(Inherited from SQLitePersistenceServiceBase<TData>.)
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.)
Protected methodFireInserted
Fire inserting event
(Inherited from SQLitePersistenceServiceBase<TData>.)
Protected methodFireInserting
Fire inserting event
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodFromModelInstance
From model instance
(Overrides IdentifiedPersistenceService<TModel, TDomain, TQueryResult>.FromModelInstance(TModel, SQLiteDataContext).)
Public methodGet
Get the specified key.
(Inherited from SQLitePersistenceServiceBase<TData>.)
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(Object)
Insert the specified object
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodInsert(SQLiteDataContext, TData)
Performthe actual insert.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodInsert(TData, TransactionMode, IPrincipal)
Insert the specified data.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Protected methodInsertInternal
Inserts the specified person
(Overrides EntityDerivedPersistenceService<TModel, TData, TQueryResult>.InsertInternal(SQLiteDataContext, TModel).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodObsolete(Object)
Obsoletes the specified data
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodObsolete(SQLiteDataContext, TData)
Performs the actual obsoletion
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodObsolete(TData, TransactionMode, IPrincipal)
Obsolete the specified identified data
(Inherited from SQLitePersistenceServiceBase<TData>.)
Protected methodObsoleteInternal
Obsolete the object
(Inherited from EntityDerivedPersistenceService<TModel, TData, TQueryResult>.)
Public methodQuery(Expression<Func<TData, Boolean>>, IPrincipal)
Query the specified data
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodQuery(SQLiteDataContext, Expression<Func<TData, Boolean>>)
Query internal without caring about limiting
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodQuery(Expression, Int32, Nullable<Int32>, Int32)
Query the specified object
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodQuery(Expression<Func<TData, Boolean>>, Int32, Nullable<Int32>, Int32, IPrincipal,ModelSort<TData>[])
Query the specified data
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodQuery(Expression<Func<TData, Boolean>>, Guid, Int32, Nullable<Int32>, Int32, IPrincipal,ModelSort<TData>[])
Perform a stored query
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodQuery(SQLiteDataContext, Expression<Func<TData, Boolean>>, Guid, Int32, Int32, Int32, Boolean,ModelSort<TData>[])
Performs the actual query
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodQueryFast
Query the specified data
(Inherited from SQLitePersistenceServiceBase<TData>.)
Protected methodQueryInternal(SQLiteDataContext, Expression<Func<TModel, Boolean>>, Int32, Int32, Int32, Guid, Boolean,ModelSort<TModel>[])
Performs the actual query
(Inherited from IdentifiedPersistenceService<TModel, TDomain, TQueryResult>.)
Protected methodQueryInternal(SQLiteDataContext, String, IDictionary<String, Object>, Int32, Int32, Int32, Guid, Boolean,ModelSort<TModel>[])
Performs the actual query
(Inherited from IdentifiedPersistenceService<TModel, TDomain, TQueryResult>.)
Public methodToModelInstance
Model instance
(Overrides IdentifiedPersistenceService<TModel, TDomain, TQueryResult>.ToModelInstance(Object, SQLiteDataContext).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate(Object)
Update the specified object
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodUpdate(SQLiteDataContext, TData)
Perform the actual update.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public methodUpdate(TData, TransactionMode, IPrincipal)
Update the specified data
(Inherited from SQLitePersistenceServiceBase<TData>.)
Protected methodUpdateAssociatedItems<TAssociation, TModelEx>
Update associated version items
(Inherited from IdentifiedPersistenceService<TModel, TDomain, TQueryResult>.)
Protected methodUpdateInternal
Update the person entity
(Overrides EntityDerivedPersistenceService<TModel, TData, TQueryResult>.UpdateInternal(SQLiteDataContext, TModel).)
Top
Events
  NameDescription
Public eventInserted
Occurs when inserted.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public eventInserting
Occurs when inserting.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public eventObsoleted
Occurs when obsoleted.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public eventObsoleting
Occurs when obsoleting.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public eventQueried
Occurs when queried.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public eventQuerying
Occurs when querying.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public eventRetrieved
Occurs when querying.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public eventRetrieving
Data has been retrieved
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public eventUpdated
Occurs when updated.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Public eventUpdating
Occurs when updating.
(Inherited from SQLitePersistenceServiceBase<TData>.)
Top
Fields
Extension Methods
  NameDescription
Public Extension MethodConvert<TReturn>
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 MethodGetInstanceOf<TDomain>
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
Remarks
This is a little different than the other persisters as we have to persist half the object in one set of tables ane the other fields in this table
See Also