EntityBinding<TEntity> Class
Namespace: PTS.EntityLayer.Binding
Assembly: PTS.EntityLayer.Binding.dll
Syntax
public abstract class EntityBinding<TEntity> : IEntityBinding where TEntity : class
Type Parameters
Name | Description |
---|---|
TEntity |
Inheritance
System.Object
EntityBinding<TEntity>
Implements
Properties
EntityType
Declaration
public Type EntityType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
Configure(DbContext, EntityTypeBuilder<TEntity>)
Declaration
public abstract void Configure(DbContext context, EntityTypeBuilder<TEntity> builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context | |
Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> | builder |
Configure(DbContext, ModelBuilder)
Declaration
public void Configure(DbContext context, ModelBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context | |
Microsoft.EntityFrameworkCore.ModelBuilder | builder |
OnAfterEntityModelConfigured(DbContext, ModelBuilder)
Declaration
protected virtual void OnAfterEntityModelConfigured(DbContext context, ModelBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context | |
Microsoft.EntityFrameworkCore.ModelBuilder | builder |
OnBeforeEntityModelConfigured(DbContext, ModelBuilder)
Declaration
protected virtual void OnBeforeEntityModelConfigured(DbContext context, ModelBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context | |
Microsoft.EntityFrameworkCore.ModelBuilder | builder |
Implements
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()