title: Calling an object constructor from NHibernate QueryOver SelectList
body: <p>I have a DTo class <code>UserDTO</code> with the following constructor <code>public UserDTO(User user)</code>. I have also created an NHibernate query which retrieves a <code>IList&lt;TodoDTO&gt;</code> where each <code>TodoDTO</code> has the following property <code>public IList&lt;UserDTO&gt; ResponsibleUsers { get; set; }</code>.
  I am wondering if it would be possible to this constructor on <code>UserDTO</code> in my query, so something like this:</p>
  
  <pre><code>var responsibleUsers = session.QueryOver&lt;UserTodo&gt;()
      .JoinAlias(ut =&gt; ut.User, () =&gt; userAlias)
      .Where(ut =&gt; ut.Todo.Id.IsIn(_todos.Select(t =&gt; t.Id).ToArray()))
      .Select(u =&gt; new UserDTO(userAlias)).ToList&lt;UserDTO&gt;();
  </code></pre>
  
  <p>The constructor looks like this:<br>
  <code>public UserDTO(User user) {}</code></p>
  
  <p>The problem is that when I run this code the parameter in the <code>UserDTO</code> constructor the <code>user</code> is null.</p>