Skip to content

Commit 6fa5cef

Browse files
authored
Merge pull request #22754 from abpframework/entity-extensions-md
Add DataTypeAttribute section to Module Entity Extensions document
2 parents a34958f + ab2d7a2 commit 6fa5cef

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/en/framework/architecture/modularity/extending/module-entity-extensions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,17 @@ property =>
151151

152152
> Tip: Use `DefaultValueFactory` option only if the default value may change over the time (like `DateTime.Now` in this example). If it is a constant value, then use the `DefaultValue` option.
153153

154+
### DataTypeAttribute
155+
156+
`DataTypeAttribute` is used to specify the type of the property. It is used to determine how to render the property on the user interface:
157+
158+
```csharp
159+
property =>
160+
{
161+
property.Attributes.Add(new DataTypeAttribute(DataType.Date));
162+
}
163+
```
164+
154165
### Validation
155166

156167
Entity extension system allows you to define validation for extension properties in a few ways.

0 commit comments

Comments
 (0)