title: How to add unique non primary-key field to entity using Entity Framework 4.1?
body: <p>We are using Entity Framework 4.1 Code first.</p>
  
  <p>We've got user entity with primary key set to <code>UserId</code> and need <code>UserLogin</code> to be unique. How can it be done?</p>