Browse Source

Merge pull request #22760 from abpframework/auto-merge/rel-9-1/3686

Merge branch rel-9.2 with rel-9.1
pull/22761/head
maliming 10 months ago
committed by GitHub
parent
commit
f86bcdb8fd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      docs/en/framework/architecture/modularity/extending/module-entity-extensions.md

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

@ -151,6 +151,17 @@ property =>
> 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. > 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.
### DataTypeAttribute
`DataTypeAttribute` is used to specify the type of the property. It is used to determine how to render the property on the user interface:
```csharp
property =>
{
property.Attributes.Add(new DataTypeAttribute(DataType.Date));
}
```
### Validation ### Validation
Entity extension system allows you to define validation for extension properties in a few ways. Entity extension system allows you to define validation for extension properties in a few ways.

Loading…
Cancel
Save