Browse Source

Add nullable datetime types.

pull/5146/head
maliming 6 years ago
parent
commit
e11d4ce310
  1. 4
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/ObjectExtending/ObjectExtendingPropertyInfoExtensions.cs

4
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/ObjectExtending/ObjectExtendingPropertyInfoExtensions.cs

@ -9,7 +9,9 @@ namespace Volo.Abp.ObjectExtending
private static readonly Type[] DateTimeTypes = private static readonly Type[] DateTimeTypes =
{ {
typeof(DateTime), typeof(DateTime),
typeof(DateTimeOffset) typeof(DateTime?),
typeof(DateTimeOffset),
typeof(DateTimeOffset?)
}; };
public static bool IsDate(this IBasicObjectExtensionPropertyInfo property) public static bool IsDate(this IBasicObjectExtensionPropertyInfo property)

Loading…
Cancel
Save