0
yuhang.ji@yftech-dl.com created
- ABP Framework version: v3.0.4
- UI type: MVC
- Tiered (MVC) or Identity Server Seperated (Angular): no
- Exception message and stack trace: N/A
- Steps to reproduce the issue:
I defined an extension property Birth to the IdentityUser:
ObjectExtensionManager.Instance.Modules()
.ConfigureIdentity(identity =>
{
identity.ConfigureUser(user =>
{
user.AddOrUpdateProperty<DateTime?>(
"Birth",
property =>
{
property.UI.OnTable.IsVisible = false;
property.Attributes.Add(new DataTypeAttribute(DataType.Date));
}
);
});
});
The birth property is optional so I give it DateTime? type.
The create form works well, and I can see the birth value is stored to the DB successfully:
However when I edit the user, I cannot see the birth value:
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
7 Answer(s)
-
0
It seems it's related to the DateTime format.
I found there is a warning in the browser console:
The specified value "2020/7/18 0:00:00" does not conform to the required format, "yyyy-MM-dd".If I remove
property.Attributes.Add(new DataTypeAttribute(DataType.Date));, value can be displayed, but with time part which I don't want.Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Guys, any news?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Nope, the issue still exists.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)



