GenericRepository<T> Class

Relativity Services API
GenericRepository provides CRUD and mass operation services for typed data transfer objects (DTOs).
Inheritance Hierarchy

System.Object
  kCura.Relativity.Client.Repositories.GenericRepository<T>
    More...

Namespace:  kCura.Relativity.Client.Repositories
Assembly:  kCura.Relativity.Client (in kCura.Relativity.Client.dll) Version: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax

public class GenericRepository<T> : IGenericRepository<T>
where T : new(), Artifact

Type Parameters

T
The ArtifactType on which operations will be performed.

The GenericRepository<T> type exposes the following members.

Methods

  NameDescription
Public methodCreate(List<T>)
Creates the specified Artifacts.
Public methodCreate(T[])
Creates the specified Artifacts.
Public methodCreateSingle
Creates a single Artifact of the supplied DTO type.
Public methodDelete(List<Int32>)
Deletes the specified Artifacts.
Public methodDelete(List<T>)
Deletes the specified Artifacts.
Public methodDelete(Int32[])
Deletes the specified Artifacts.
Public methodDelete(T[])
Deletes the specified Artifacts.
Public methodDeleteSingle(Guid)
Deletes the specified Artifact.
Public methodDeleteSingle(Int32)
Deletes the specified Artifact.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMassCreate
Creates RDO instances for each ArtifactRequest in artifacts based on the Field values provided by a 'template' ArtifactRequest.
Public methodMassEdit
Applies the Field values from the 'template' artifact to each of the Artifacts identified by the array of ArtifactIDs.
Public methodQuery
Queries Relativity to find Artifacts matching the selection criteria.
Public methodQuerySubset
Fetches additional search results after a call to Query.
Public methodRead(List<Int32>)
Reads the specified Artifacts. For each Artifact, all fields will be returned.
Public methodRead(List<T>)
Reads the specified Artifacts.
Public methodRead(Int32[])
Reads the specified Artifacts. For each Artifact, all fields will be returned.
Public methodRead(T[])
Reads the specified Artifacts.
Public methodReadSingle(Guid)
Returns the Artifact matching the specified artifact GUID.
Public methodReadSingle(Int32)
Returns the Artifact matching the specified artifact ID.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate(List<T>)
Updates the specified Artifacts.
Public methodUpdate(T[])
Updates the specified Artifacts.
Public methodUpdateSingle
Updates the specified Artifact.
Top
Extension Methods

  NameDescription
Public Extension MethodCreateItem<T>
Creates the specified Artifact object and adds it to the current Repository.
(Defined by GenericRepositoryExtensions.)
Public Extension MethodDeleteItem<T>
Deletes the specified Artifact.
(Defined by GenericRepositoryExtensions.)
Public Extension MethodReadItem<T>
Reads the specified Artifact.
(Defined by GenericRepositoryExtensions.)
Public Extension MethodUpdateItem<T>
Updates the specified Artifact.
(Defined by GenericRepositoryExtensions.)
Top
See Also

Reference

Inheritance Hierarchy

System.Object
  kCura.Relativity.Client.Repositories.GenericRepository<T>
    kCura.Relativity.Client.Repositories.BatchRepository
    kCura.Relativity.Client.Repositories.BatchSetRepository
    kCura.Relativity.Client.Repositories.ChoiceRepository
    kCura.Relativity.Client.Repositories.ClientRepository
    kCura.Relativity.Client.Repositories.DocumentRepository
    kCura.Relativity.Client.Repositories.ErrorRepository
    kCura.Relativity.Client.Repositories.FieldRepository
    kCura.Relativity.Client.Repositories.FolderRepository
    kCura.Relativity.Client.Repositories.GroupRepository
    kCura.Relativity.Client.Repositories.LayoutRepository
    kCura.Relativity.Client.Repositories.MarkupSetRepository
    kCura.Relativity.Client.Repositories.ObjectTypeRepository
    kCura.Relativity.Client.Repositories.RDORepository
    kCura.Relativity.Client.Repositories.RelativityApplicationRepository
    kCura.Relativity.Client.Repositories.RelativityScriptRepository
    kCura.Relativity.Client.Repositories.TabRepository
    kCura.Relativity.Client.Repositories.UserRepository
    kCura.Relativity.Client.Repositories.ViewRepository
    kCura.Relativity.Client.Repositories.WorkspaceRepository