Click or drag to resize

SQLitePersistenceServiceBaseTData Class

Represents a data persistence service which stores data in the local SQLite data store
Inheritance Hierarchy
SystemObject
  SanteDB.DisconnectedClient.SQLiteSQLitePersistenceServiceBaseTData
    SanteDB.DisconnectedClient.SQLite.PersistenceIdentifiedPersistenceServiceTModel, TDomain, TQueryResult

Namespace:  SanteDB.DisconnectedClient.SQLite
Assembly:  SanteDB.DisconnectedClient.SQLite (in SanteDB.DisconnectedClient.SQLite.dll) Version: 2.2.1
Syntax
public abstract class SQLitePersistenceServiceBase<TData> : IDataPersistenceService<TData>, 
	IServiceImplementation, IStoredQueryDataPersistenceService<TData>, ISQLitePersistenceService, IDataPersistenceService
where TData : new(), IdentifiedData

Type Parameters

TData

[Missing <typeparam name="TData"/> documentation for "T:SanteDB.DisconnectedClient.SQLite.SQLitePersistenceServiceBase`1"]

The SQLitePersistenceServiceBaseTData type exposes the following members.

Constructors
  NameDescription
Public methodSQLitePersistenceServiceBaseTData
Initializes a new instance of the SQLitePersistenceServiceBaseTData class
Top
Properties
  NameDescription
Public propertyServiceName
Get the service name
Top
Methods
  NameDescription
Public methodCount
Perform a count
Protected methodCreateConnection
Creates the connection.
Protected methodCreateReadonlyConnection
Create readonly connection
Protected methodCurrentUserUuid
Get the current user UUID.
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
Protected methodFireInserting
Fire inserting event
Public methodFromModelInstance
Froms the model instance.
Public methodGet
Get the specified key.
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
Public methodInsert(SQLiteDataContext, TData)
Performthe actual insert.
Public methodInsert(TData, TransactionMode, IPrincipal)
Insert the specified data.
Protected methodInsertInternal
Performthe actual insert.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodObsolete(Object)
Obsoletes the specified data
Public methodObsolete(SQLiteDataContext, TData)
Performs the actual obsoletion
Public methodObsolete(TData, TransactionMode, IPrincipal)
Obsolete the specified identified data
Protected methodObsoleteInternal
Performs the actual obsoletion
Public methodQuery(ExpressionFuncTData, Boolean, IPrincipal)
Query the specified data
Public methodQuery(SQLiteDataContext, ExpressionFuncTData, Boolean)
Query internal without caring about limiting
Public methodQuery(Expression, Int32, NullableInt32, Int32)
Query the specified object
Public methodQuery(ExpressionFuncTData, Boolean, Int32, NullableInt32, Int32, IPrincipal, ModelSortTData)
Query the specified data
Public methodQuery(ExpressionFuncTData, Boolean, Guid, Int32, NullableInt32, Int32, IPrincipal, ModelSortTData)
Perform a stored query
Public methodQuery(SQLiteDataContext, ExpressionFuncTData, Boolean, Guid, Int32, Int32, Int32, Boolean, ModelSortTData)
Performs the actual query
Public methodQueryFast
Query the specified data
Protected methodQueryInternal(SQLiteDataContext, ExpressionFuncTData, Boolean, Int32, Int32, Int32, Guid, Boolean, ModelSortTData)
Performs the actual query
Protected methodQueryInternal(SQLiteDataContext, String, IDictionaryString, Object, Int32, Int32, Int32, Guid, Boolean, ModelSortTData)
Performs the actual query
Public methodToModelInstance
Maps the data to a model instance
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate(Object)
Update the specified object
Public methodUpdate(SQLiteDataContext, TData)
Perform the actual update.
Public methodUpdate(TData, TransactionMode, IPrincipal)
Update the specified data
Protected methodUpdateInternal
Perform the actual update.
Top
Events
  NameDescription
Public eventInserted
Occurs when inserted.
Public eventInserting
Occurs when inserting.
Public eventObsoleted
Occurs when obsoleted.
Public eventObsoleting
Occurs when obsoleting.
Public eventQueried
Occurs when queried.
Public eventQuerying
Occurs when querying.
Public eventRetrieved
Occurs when querying.
Public eventRetrieving
Data has been retrieved
Public eventUpdated
Occurs when updated.
Public eventUpdating
Occurs when updating.
Top
Fields
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