 | BundlePersistenceServiceDelete(Guid, TransactionMode, IPrincipal) Method |
Delete the specified identified data
Namespace: SanteDB.Persistence.Data.Services.Persistence.CollectionsAssembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntaxpublic Bundle Delete(
Guid key,
TransactionMode transactionMode,
IPrincipal principal
)
Public Function Delete (
key As Guid,
transactionMode As TransactionMode,
principal As IPrincipal
) As Bundle
public:
virtual Bundle^ Delete(
Guid key,
TransactionMode transactionMode,
IPrincipal^ principal
) sealed
abstract Delete :
key : Guid *
transactionMode : TransactionMode *
principal : IPrincipal -> Bundle
override Delete :
key : Guid *
transactionMode : TransactionMode *
principal : IPrincipal -> Bundle Parameters
- key Guid
- The identifier/key of the data to be deleted
- transactionMode TransactionMode
- The transaction mode
- principal IPrincipal
- The principal which is deleting the data
Return Value
Bundle[Missing <returns> documentation for "M:SanteDB.Persistence.Data.Services.Persistence.Collections.BundlePersistenceService.Delete(System.Guid,SanteDB.Core.Services.TransactionMode,System.Security.Principal.IPrincipal)"]
Implements
IDataPersistenceServiceTDataDelete(Guid, TransactionMode, IPrincipal)
Exceptions
Remarks
This method will attempt to delete data according to the currently scoped DataPersistenceControlContext.
| LogicalDelete | The persistence layer should attempt to logically delete the record. This means that the record should not appear in queries, nor direct retrieves |
| PermanentDelete | The persistence layer should purge the data from the database |
The DeleteMode is a suggestion to the persistence layer, generally the closest, most appropriate value
is chosen based on:
- Whether the TData class can be logically deleted (i.e. does it carry the necessary fields to support deletion)
- Whether there are other references to the object
- Whether the configuration for the persistence layer permits logical deletion
See Also