Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class ModelBuilder

    Determine how to build the model and the relation with all mapped entities.

    Inheritance
    object
    ModelBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.Cloud.AWS.Dynamo.Mapping
    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
    Type Description
    bool

    Methods

    | Edit this page View Source

    AddConfiguration<T>(IEntityTypeDataModelMapper<T>)

    Declaration
    public ModelBuilder AddConfiguration<T>(IEntityTypeDataModelMapper<T> entityTypeDataModelMapper) where T : class
    Parameters
    Type Name Description
    IEntityTypeDataModelMapper<T> entityTypeDataModelMapper
    Returns
    Type Description
    ModelBuilder
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    AddPropertyConverter(Type, IPropertyConverter)

    Declaration
    public ModelBuilder AddPropertyConverter(Type type, IPropertyConverter converter)
    Parameters
    Type Name Description
    Type type
    IPropertyConverter converter
    Returns
    Type Description
    ModelBuilder
    | Edit this page View Source

    Entity<TEntity>()

    Declaration
    public EntityTypeBuilder<TEntity> Entity<TEntity>() where TEntity : class
    Returns
    Type Description
    EntityTypeBuilder<TEntity>
    Type Parameters
    Name Description
    TEntity
    | 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
    Type Description
    EntityTypeBuilder
    Exceptions
    Type Condition
    MissingEntityMapException
    | Edit this page View Source

    GetEntityBuilder<T>()

    Returns a EntityTypeBuilder for the given entity.

    Declaration
    public EntityTypeBuilder GetEntityBuilder<T>()
    Returns
    Type Description
    EntityTypeBuilder
    Type Parameters
    Name Description
    T
    | 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
    Type Description
    IPropertyConverter

    Returns a converter or null.

    | Edit this page View Source

    HasTypeBuilder(string)

    Declaration
    public bool HasTypeBuilder(string entityName)
    Parameters
    Type Name Description
    string entityName
    Returns
    Type Description
    bool
    | Edit this page View Source

    HasTypeBuilder(Type)

    Declaration
    public bool HasTypeBuilder(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    bool
    | 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 Description
    bool
    Type Parameters
    Name Description
    T

    Extension Methods

    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX