Search Results for

    Show / Hide Table of Contents

    Interface IPropertyBuilder

    Instances of this class are returned from methods inside the Venflow.Modeling.Definitions.Builder.EntityBuilder`1 class when using the Fluent API and it is not designed to be directly constructed in your application code.

    Namespace: Venflow.Modeling.Definitions.Builder
    Assembly: Venflow.dll
    Syntax
    public interface IPropertyBuilder

    Methods

    | Improve this Doc View Source

    HasDefault()

    Marks the current column to be generated by the database

    Declaration
    IPropertyBuilder HasDefault()
    Returns
    Type Description
    IPropertyBuilder

    The same builder instance so that multiple calls can be chained.

    | Improve this Doc View Source

    HasId()

    Marks the current property as a primary key. This is the Fluent API equivalent to the .

    Declaration
    IPropertyBuilder HasId()
    Returns
    Type Description
    IPropertyBuilder

    The same builder instance so that multiple calls can be chained.

    | Improve this Doc View Source

    WithName(String)

    Configures the name of the current column, if not configured it will use the name of the property.

    Declaration
    IPropertyBuilder WithName(string name)
    Parameters
    Type Name Description
    String name

    The name of the column in the database to which the used property should map to.

    Returns
    Type Description
    IPropertyBuilder

    The same builder instance so that multiple calls can be chained.

    | Improve this Doc View Source

    WithType(NpgsqlDbType)

    Configures the database type of the current column, if not configured it will use the default of the property.

    Declaration
    IPropertyBuilder WithType(NpgsqlDbType dbType)
    Parameters
    Type Name Description
    NpgsqlDbType dbType

    The type of the column in the database.

    Returns
    Type Description
    IPropertyBuilder

    The same builder instance so that multiple calls can be chained.

    Theme

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 Twenty