C# Class Microsoft.Research.DataOnboarding.DataAccessService.Providers.EntityFramework.RepositoryDetails

Implements repository details IRepositoryDetails leveraging entity framework
Inheritance: RepositoryBase, IRepositoryDetails
Show file Open project: CDLUC3/dataup2 Class Usage Examples

Public Methods

Method Description
AddRepository ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository ) : Microsoft.Research.DataOnboarding.DomainModel.Repository

Method to add new repository record.

DeleteRepository ( int repositoryId ) : Microsoft.Research.DataOnboarding.DomainModel.Repository

Method to delete the selected repository.

DeleteRepositoryMetaData ( int repositoryMetaDataId ) : Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadata

Method to delete repository metadata

DeleteRepositoryMetaDataField ( int repositoryMetaDataField ) : Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadataField

Method to delete repository meta data fields

GetBaseRepositoryName ( int baseRepositoryId ) : string

Method to get the base repository name for the specific

GetMetadataTypes ( ) : IEnumerable

Returns trhe MetadataTypes.

GetRepositoryById ( int repositoryId ) : Microsoft.Research.DataOnboarding.DomainModel.Repository

Method to get the repository by id.

GetRepositoryByName ( string repositoryName ) : Microsoft.Research.DataOnboarding.DomainModel.Repository

Method to get the repository by its name.

RepositoryDetails ( IUnitOfWork dataContext ) : System.Collections.Generic

Initializes a new instance of the RepositoryDetails class.

RetrieveRepositories ( ) : IEnumerable

Retrieve all the available repositories.

RetrieveRepositoryTypes ( ) : IEnumerable

Retrieve all the available repository types.

SaveRepositoryMetaData ( Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadata repositoryMetadata ) : Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadata
SaveRepositoryMetaDataField ( Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadataField repositoryMetadataField ) : Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadataField
UpdateRepository ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository ) : Microsoft.Research.DataOnboarding.DomainModel.Repository

Method to update the repository.

Method Details

AddRepository() public method

Method to add new repository record.
When repository is null
public AddRepository ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository ) : Microsoft.Research.DataOnboarding.DomainModel.Repository
repository Microsoft.Research.DataOnboarding.DomainModel.Repository Repository details.
return Microsoft.Research.DataOnboarding.DomainModel.Repository

DeleteRepository() public method

Method to delete the selected repository.
public DeleteRepository ( int repositoryId ) : Microsoft.Research.DataOnboarding.DomainModel.Repository
repositoryId int Repository id.
return Microsoft.Research.DataOnboarding.DomainModel.Repository

DeleteRepositoryMetaData() public method

Method to delete repository metadata
public DeleteRepositoryMetaData ( int repositoryMetaDataId ) : Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadata
repositoryMetaDataId int repository MetaDataId
return Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadata

DeleteRepositoryMetaDataField() public method

Method to delete repository meta data fields
public DeleteRepositoryMetaDataField ( int repositoryMetaDataField ) : Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadataField
repositoryMetaDataField int repositoryMetaData Field
return Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadataField

GetBaseRepositoryName() public method

Method to get the base repository name for the specific
public GetBaseRepositoryName ( int baseRepositoryId ) : string
baseRepositoryId int
return string

GetMetadataTypes() public method

Returns trhe MetadataTypes.
public GetMetadataTypes ( ) : IEnumerable
return IEnumerable

GetRepositoryById() public method

Method to get the repository by id.
public GetRepositoryById ( int repositoryId ) : Microsoft.Research.DataOnboarding.DomainModel.Repository
repositoryId int Repository id.
return Microsoft.Research.DataOnboarding.DomainModel.Repository

GetRepositoryByName() public method

Method to get the repository by its name.
public GetRepositoryByName ( string repositoryName ) : Microsoft.Research.DataOnboarding.DomainModel.Repository
repositoryName string Repository name.
return Microsoft.Research.DataOnboarding.DomainModel.Repository

RepositoryDetails() public method

Initializes a new instance of the RepositoryDetails class.
public RepositoryDetails ( IUnitOfWork dataContext ) : System.Collections.Generic
dataContext IUnitOfWork Data context.
return System.Collections.Generic

RetrieveRepositories() public method

Retrieve all the available repositories.
public RetrieveRepositories ( ) : IEnumerable
return IEnumerable

RetrieveRepositoryTypes() public method

Retrieve all the available repository types.
public RetrieveRepositoryTypes ( ) : IEnumerable
return IEnumerable

SaveRepositoryMetaData() public method

public SaveRepositoryMetaData ( Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadata repositoryMetadata ) : Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadata
repositoryMetadata Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadata
return Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadata

SaveRepositoryMetaDataField() public method

public SaveRepositoryMetaDataField ( Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadataField repositoryMetadataField ) : Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadataField
repositoryMetadataField Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadataField
return Microsoft.Research.DataOnboarding.DomainModel.RepositoryMetadataField

UpdateRepository() public method

Method to update the repository.
When repository is null
public UpdateRepository ( Microsoft.Research.DataOnboarding.DomainModel.Repository repository ) : Microsoft.Research.DataOnboarding.DomainModel.Repository
repository Microsoft.Research.DataOnboarding.DomainModel.Repository Repository details.
return Microsoft.Research.DataOnboarding.DomainModel.Repository