Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class PropertyBuilder

    Inheritance
    object
    PropertyBuilder
    PropertyBuilder<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.Cloud.AWS.Dynamo.Mapping.Builder
    Assembly: Innovt.Cloud.AWS.Dynamo.dll
    Syntax
    public abstract class PropertyBuilder

    Properties

    | Edit this page View Source

    Builder

    Declaration
    public EntityTypeBuilder Builder { get; set; }
    Property Value
    Type Description
    EntityTypeBuilder
    | Edit this page View Source

    ColumnName

    Gets or sets the column name associated with the property. if the column name is not set, the property name is used.

    Declaration
    public string ColumnName { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    HasMapAction

    Has map actions is when you need to map some property.

    Declaration
    public bool HasMapAction { get; protected set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Ignored

    Declaration
    public bool Ignored { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    MaxLength

    The max length of the property

    Declaration
    public int MaxLength { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Name

    Gets the name of the property.

    Declaration
    public string Name { get; protected set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Required

    Gets a value if the field is required.

    Declaration
    public bool Required { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    SetValueDelegate

    Declaration
    protected Func<object, object> SetValueDelegate { get; set; }
    Property Value
    Type Description
    Func<object, object>
    | Edit this page View Source

    Type

    Gets the type of the property.

    Declaration
    public Type Type { get; set; }
    Property Value
    Type Description
    Type
    | Edit this page View Source

    Value

    Get the value of the property.

    Declaration
    protected object Value { get; set; }
    Property Value
    Type Description
    object

    Methods

    | Edit this page View Source

    GetDefaultValue<T>(T)

    Get the instance value using a fixed value or a delegate.

    Declaration
    public object GetDefaultValue<T>(T entity) where T : class
    Parameters
    Type Name Description
    T entity
    Returns
    Type Description
    object
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    HasColumnName(string)

    Specifies a custom column name for the property in the database.

    Declaration
    protected PropertyBuilder HasColumnName(string name)
    Parameters
    Type Name Description
    string name

    The custom column name.

    Returns
    Type Description
    PropertyBuilder

    The current instance of PropertyBuilder.

    | Edit this page View Source

    HasDefaultValue(object)

    It set a value for property.

    Declaration
    protected PropertyBuilder HasDefaultValue(object value)
    Parameters
    Type Name Description
    object value
    Returns
    Type Description
    PropertyBuilder
    | Edit this page View Source

    HasMaxLength(int)

    Specifies that the property is of decimal type.

    Declaration
    protected PropertyBuilder HasMaxLength(int maxLength)
    Parameters
    Type Name Description
    int maxLength
    Returns
    Type Description
    PropertyBuilder

    The current instance of PropertyBuilder.

    | Edit this page View Source

    Ignore()

    Declaration
    public PropertyBuilder Ignore()
    Returns
    Type Description
    PropertyBuilder
    | Edit this page View Source

    Include()

    Declaration
    public PropertyBuilder Include()
    Returns
    Type Description
    PropertyBuilder
    | Edit this page View Source

    IsRequired(bool)

    Define when a fi

    Declaration
    protected PropertyBuilder IsRequired(bool isRequired = true)
    Parameters
    Type Name Description
    bool isRequired

    Default value if true.

    Returns
    Type Description
    PropertyBuilder

    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