title: Can a POCO contain a constructor?
body: <p>Can a POCO contain a constructor? Could you tell me if this class is correct? I also read that a POCO must have a parameterless constructor. Is that correct and why? If I accept this parameterless constructor, I'll have a problem with my read only <code>Id</code> property. For me, it seems logical that if this property must be read-only, then the only way to initialize it is in the constructor.</p>
  
  <pre><code>[DataContract]
  public class MembershipUser
  {
      public MembershipUser(Guid idValue)
      {
          this.Id = idValue;
      }
  
      [DataMember]
      public virtual readonly Guid Id { get; set; }
  
      [DataMember]
      public virtual string UserName { get; set; }
  
      [DataMember]
      public virtual string Email { get; set; }
  }
  </code></pre>