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 SourceHasDefault()
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. |
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. |
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. |
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. |