Class PropertyBuilder
Inheritance
PropertyBuilder
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
|
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
|
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
|
Edit this page
View Source
Ignored
Declaration
public bool Ignored { get; }
Property Value
|
Edit this page
View Source
MaxLength
The max length of the property
Declaration
public int MaxLength { get; }
Property Value
|
Edit this page
View Source
Name
Gets the name of the property.
Declaration
public string Name { get; protected set; }
Property Value
|
Edit this page
View Source
Required
Gets a value if the field is required.
Declaration
public bool Required { get; }
Property Value
|
Edit this page
View Source
SetValueDelegate
Declaration
protected Func<object, object> SetValueDelegate { get; set; }
Property Value
|
Edit this page
View Source
Type
Gets the type of the property.
Declaration
public Type Type { get; set; }
Property Value
|
Edit this page
View Source
Value
Get the value of the property.
Declaration
protected object Value { get; set; }
Property Value
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 Parameters
|
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
|
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
|
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
|
Edit this page
View Source
Ignore()
Declaration
public PropertyBuilder Ignore()
Returns
|
Edit this page
View Source
Include()
Declaration
public PropertyBuilder Include()
Returns
|
Edit this page
View Source
IsRequired(bool)
Declaration
protected PropertyBuilder IsRequired(bool isRequired = true)
Parameters
Type |
Name |
Description |
bool |
isRequired |
Default value if true.
|
Returns
Extension Methods