Class ModelBuilder
Determine how to build the model and the relation with all mapped entities.
Assembly: Innovt.Cloud.AWS.Dynamo.dll
Syntax
public sealed class ModelBuilder
Properties
|
Edit this page
View Source
IgnoreNonNativeTypes
Declaration
public bool IgnoreNonNativeTypes { get; set; }
Property Value
Methods
|
Edit this page
View Source
AddConfiguration<T>(IEntityTypeDataModelMapper<T>)
Declaration
public ModelBuilder AddConfiguration<T>(IEntityTypeDataModelMapper<T> entityTypeDataModelMapper) where T : class
Parameters
Returns
Type Parameters
|
Edit this page
View Source
AddPropertyConverter(Type, IPropertyConverter)
Declaration
public ModelBuilder AddPropertyConverter(Type type, IPropertyConverter converter)
Parameters
Returns
|
Edit this page
View Source
Entity<TEntity>()
Declaration
public EntityTypeBuilder<TEntity> Entity<TEntity>() where TEntity : class
Returns
Type Parameters
|
Edit this page
View Source
GetEntityBuilder(string)
It returns a EntityTypeBuilder for the given entity name.
Declaration
public EntityTypeBuilder GetEntityBuilder(string entityName)
Parameters
Type |
Name |
Description |
string |
entityName |
|
Returns
Exceptions
|
Edit this page
View Source
GetEntityBuilder<T>()
Returns a EntityTypeBuilder for the given entity.
Declaration
public EntityTypeBuilder GetEntityBuilder<T>()
Returns
Type Parameters
|
Edit this page
View Source
GetPropertyConverter(Type)
Return the PropertyConverter for the given type.
Declaration
public IPropertyConverter GetPropertyConverter(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
A type that the system will search for a converter
|
Returns
|
Edit this page
View Source
HasTypeBuilder(string)
Declaration
public bool HasTypeBuilder(string entityName)
Parameters
Type |
Name |
Description |
string |
entityName |
|
Returns
|
Edit this page
View Source
HasTypeBuilder(Type)
Declaration
public bool HasTypeBuilder(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Edit this page
View Source
HasTypeBuilder<T>(object)
Utility method to add a new entity to the context
Declaration
public bool HasTypeBuilder<T>(object instance = null)
Parameters
Type |
Name |
Description |
object |
instance |
|
Returns
Type Parameters
Extension Methods