EntityFrameworkCoreXmlRepository<TContext> Class

Definition

An IXmlRepository backed by an EntityFrameworkCore datastore.

generic <typename TContext>
 where TContext : DbContext, IDataProtectionKeyContextpublic ref class EntityFrameworkCoreXmlRepository : Microsoft::AspNetCore::DataProtection::Repositories::IXmlRepository
public class EntityFrameworkCoreXmlRepository<TContext> : Microsoft.AspNetCore.DataProtection.Repositories.IXmlRepository where TContext : DbContext, IDataProtectionKeyContext
type EntityFrameworkCoreXmlRepository<'Context (requires 'Context :> DbContext and 'Context :> IDataProtectionKeyContext)> = class
    interface IXmlRepository
Public Class EntityFrameworkCoreXmlRepository(Of TContext)
Implements IXmlRepository

Type Parameters

TContext
Inheritance
EntityFrameworkCoreXmlRepository<TContext>
Implements

Constructors

EntityFrameworkCoreXmlRepository<TContext>(IServiceProvider, ILoggerFactory)

Creates a new instance of the EntityFrameworkCoreXmlRepository<TContext>.

Methods

GetAllElements()

Gets all top-level XML elements in the repository.

StoreElement(XElement, String)

Adds a top-level XML element to the repository.

Applies to