DbContextOptionsLoggerExtensions Class
Namespace: PTS
Assembly: PTS.EntityLayer.Logging.dll
Syntax
public static class DbContextOptionsLoggerExtensions
Inheritance
System.Object
DbContextOptionsLoggerExtensions
Methods
UseConsoleLogger<TContext>(DbContextOptionsBuilder<TContext>, Boolean)
Declaration
public static DbContextOptionsBuilder<TContext> UseConsoleLogger<TContext>(this DbContextOptionsBuilder<TContext> optionsBuilder, bool loggerState = true)
where TContext : DbContext
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> | optionsBuilder | |
System.Boolean | loggerState |
Returns
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> |
Type Parameters
Name | Description |
---|---|
TContext |
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()