Show / Hide Table of Contents

Class ApiServiceArgsEF<TLoggerCategory, TDbContext>

Encapsulates the properties to initialize a new ApiServiceEF<TDbContext>.

Inheritance
System.Object
ApiServiceArgs<TLoggerCategory>
ApiServiceArgsEF<TLoggerCategory, TDbContext>
Inherited Members
ApiServiceArgs<TLoggerCategory>.ServiceProvider
ApiServiceArgs<TLoggerCategory>.Config
ApiServiceArgs<TLoggerCategory>.StringLocalizerFactory
ApiServiceArgs<TLoggerCategory>.Logger
ApiServiceArgs<TLoggerCategory>.Mapper
ApiServiceArgs<TLoggerCategory>.HttpContextAccessor
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.Services
Assembly: cs.temp.dll.dll
Syntax
public class ApiServiceArgsEF<TLoggerCategory, TDbContext> : ApiServiceArgs<TLoggerCategory> where TDbContext : DbContext
Type Parameters
Name Description
TLoggerCategory

The type who's name is used for the logger category name.

TDbContext

The type of DbContext.

Constructors

ApiServiceArgsEF(IServiceProvider, IConfiguration, IStringLocalizerFactory, ILogger<TLoggerCategory>, IMapper, IHttpContextAccessor, TDbContext)

Initializes a new instance of the class.

Declaration
public ApiServiceArgsEF(IServiceProvider serviceProvider, IConfiguration config, IStringLocalizerFactory stringLocalizerFactory, ILogger<TLoggerCategory> logger, IMapper mapper, IHttpContextAccessor httpContextAccessor, TDbContext dbContext)
Parameters
Type Name Description
IServiceProvider serviceProvider

Reference to the current IServiceProvider instance.

IConfiguration config

Reference to the current IConfiguration instance.

IStringLocalizerFactory stringLocalizerFactory

Reference to the current IStringLocalizerFactory.

ILogger<TLoggerCategory> logger

Reference to the current ILogger instance.

IMapper mapper

Reference to the current IMapper instance.

IHttpContextAccessor httpContextAccessor

Reference to the current IHttpContextAccessor instance.

TDbContext dbContext

Reference to the current DbContext instance.

Properties

DbContext

Reference to the current DbContext instance.

Declaration
public TDbContext DbContext { get; }
Property Value
Type Description
TDbContext
In This Article
Back to top Generated by DocFX