DbContextOptionsServiceHelper Class
Namespace: PTS
Assembly: PTS.EntityLayer.Extensibility.dll
Syntax
public static class DbContextOptionsServiceHelper
Inheritance
System.Object
DbContextOptionsServiceHelper
Methods
TryAddExtension<TExtension>(DbContextOptions)
Declaration
public static TExtension TryAddExtension<TExtension>(this DbContextOptions options)
where TExtension : class, IDbContextOptionsExtension, new()
Parameters
Type |
Name |
Description |
Microsoft.EntityFrameworkCore.DbContextOptions |
options |
|
Returns
Type |
Description |
TExtension |
|
Type Parameters
Name |
Description |
TExtension |
|
WithParentServiceProvider(DbContextOptions, IServiceProvider)
Declaration
public static DbContextOptions WithParentServiceProvider(this DbContextOptions options, IServiceProvider parentProvider)
Parameters
Type |
Name |
Description |
Microsoft.EntityFrameworkCore.DbContextOptions |
options |
|
System.IServiceProvider |
parentProvider |
|
Returns
Type |
Description |
Microsoft.EntityFrameworkCore.DbContextOptions |
|
WithService<TService>(DbContextOptions, Func<IServiceProvider, TService>)
Declaration
public static DbContextOptions WithService<TService>(this DbContextOptions options, Func<IServiceProvider, TService> implementation)
where TService : class
Parameters
Type |
Name |
Description |
Microsoft.EntityFrameworkCore.DbContextOptions |
options |
|
System.Func<System.IServiceProvider, TService> |
implementation |
|
Returns
Type |
Description |
Microsoft.EntityFrameworkCore.DbContextOptions |
|
Type Parameters
Name |
Description |
TService |
|
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()