Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

Created Unassigned: Dynamic Message not showing Properly. [7145]

$
0
0
Hi ,


I have a model class Customer in which have the CustomerIndex and CustomerName Property.

I need to Show the message when CustomerName is null.
Message is __"Please provide the Name of Customer 1."__ Then 1 is the value of CustomerIndex.


RuleFor(x => x.CustomerName).NotNull().WithMessage("Please provide the Name of Customer", x => x.CustomerIndex))


But when i am executing this code I have found the message __"Please provide the Name of Customer true"__

I have found the true value in place of 1.

So can u please suggest me what is the issue.


Viewing all articles
Browse latest Browse all 1917


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>