Share via


EntityFrameworkCoreXmlRepository<TContext> 類別

定義

IXmlRepository 由 EntityFrameworkCore 資料存放區支援。

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

類型參數

TContext
繼承
EntityFrameworkCoreXmlRepository<TContext>
實作

建構函式

EntityFrameworkCoreXmlRepository<TContext>(IServiceProvider, ILoggerFactory)

建立 EntityFrameworkCoreXmlRepository<TContext> 的新執行個體。

方法

GetAllElements()

取得存放庫中的所有最上層 XML 元素。

StoreElement(XElement, String)

將最上層 XML 元素新增至存放庫。

適用於