@ -37,6 +37,13 @@ namespace Volo.Abp.ObjectExtending
public static string GetInputFormatOrNull(this IBasicObjectExtensionPropertyInfo property)
{
var formatString = property.GetDataFormatString();
if (!formatString.IsNullOrWhiteSpace())
return formatString;
}
if (property.IsDate())
return "{0:yyyy-MM-dd}";
@ -33,5 +33,13 @@ namespace Volo.Abp.ObjectExtending
.OfType<DataTypeAttribute>()
.FirstOrDefault()?.DataType;
public static string GetDataFormatString(this IBasicObjectExtensionPropertyInfo property)
return property
.Attributes
.OfType<DisplayFormatAttribute>()
.FirstOrDefault()?.DataFormatString;