title: Code first: does fluent api influence UI?
body: <p>I'm reading a book written by Julie Lerman on Code First. According to the book, annotations and fluent api give the same result. Everything depends on the style of the developer.</p>
  
  <p>I know that annotations allow both to configure how code first generate database objects and how MVC customize UI elements. Let's say I use [Required, MaxLength(50)]. The attribute will generate a NOT NULL, nvarchar (50) in the database. It also will validate the input for that field. </p>
  
  <pre><code>[Required, MaxLength(50)]
  public string Name { get; set; }
  </code></pre>
  
  <p>What if I decide to use Fluent API to configure Code first. Am I still going to need annotations to influence UI elements or using fluent API is going to be enough?  </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>How about annotations, such as Display that serve only for UI purposes? Do they have equivalents? If not, Will I need to use annotaions?</p>
  
  <pre><code>[Display(Name = "Date of Birth")]
  public DateTime BirthDate { get; set; }
  </code></pre>
  
  <p>Thanks for helping</p>