In the following action configuration, 'DateTime' parameter needs to be shown as Nullable="False" in the metadata document.
ActionConfiguration:
var product = products.EntityType;
var extendSupportAction = product.Action("ExtendSupport");
extendSupportAction.Parameter<DateTime>("newSupportedUntilDate");
extendSupportAction.ReturnsFromEntitySet<ProductFamily>("ProductFamilies");
Metadata:
<FunctionImport Name="ExtendSupport" ReturnType="ODataService.Models.ProductFamily" IsBindable="true" EntitySet="ProductFamilies">
<Parameter Name="bindingParameter" Type="ODataService.Models.Product"/>
<Parameter Name="newSupportedUntilDate" Type="Edm.DateTime"/>
</FunctionImport>
ActionConfiguration:
var product = products.EntityType;
var extendSupportAction = product.Action("ExtendSupport");
extendSupportAction.Parameter<DateTime>("newSupportedUntilDate");
extendSupportAction.ReturnsFromEntitySet<ProductFamily>("ProductFamilies");
Metadata:
<FunctionImport Name="ExtendSupport" ReturnType="ODataService.Models.ProductFamily" IsBindable="true" EntitySet="ProductFamilies">
<Parameter Name="bindingParameter" Type="ODataService.Models.Product"/>
<Parameter Name="newSupportedUntilDate" Type="Edm.DateTime"/>
</FunctionImport>