DbContextOptionsEntityBindingExtensions Class
Namespace: PTS
Assembly: PTS.EntityLayer.Binding.dll
Syntax
public static class DbContextOptionsEntityBindingExtensions
Inheritance
System.Object
DbContextOptionsEntityBindingExtensions
Methods
IgnoreEntityBinding<TContext>(DbContextOptionsBuilder<TContext>, Type[])
Declaration
public static DbContextOptionsBuilder<TContext> IgnoreEntityBinding<TContext>(this DbContextOptionsBuilder<TContext> optionsBuilder, params Type[] entityTypes)
where TContext : DbContext, IEntityServiceProvider
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> | optionsBuilder | |
System.Type[] | entityTypes |
Returns
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> |
Type Parameters
Name | Description |
---|---|
TContext |
UseEntityBinding<TContext>(DbContextOptionsBuilder<TContext>)
Declaration
public static DbContextOptionsBuilder<TContext> UseEntityBinding<TContext>(this DbContextOptionsBuilder<TContext> optionsBuilder)
where TContext : DbContext, IEntityServiceProvider
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> | optionsBuilder |
Returns
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> |
Type Parameters
Name | Description |
---|---|
TContext |
UseEntityBinding<TContext>(DbContextOptionsBuilder<TContext>, Type[])
Declaration
public static DbContextOptionsBuilder<TContext> UseEntityBinding<TContext>(this DbContextOptionsBuilder<TContext> optionsBuilder, params Type[] entityTypes)
where TContext : DbContext, IEntityServiceProvider
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> | optionsBuilder | |
System.Type[] | entityTypes |
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()