title: FluentValidation - How to customize the validation message in runtime
body: <p>In this entity:</p>
  
  <pre><code>public class Foo
  {
      public Guid Id { get; set; }
      public string Type { get; set; }
      public string Name { get; set; }
  }
  </code></pre>
  
  <p>How can I customize the validation message in runtime using another property of entity or any other string obtained from the database?</p>
  
  <p>The validation message for <code>RuleFor(foo =&gt; foo.Name)</code> would be:</p>
  
  <pre><code>var msg = "The foo with type '" + foo.Type + "' already exists in the database with name '" + nameInDataBase + "'!"
  </code></pre>