title: LINQ to Sharepoint - User field
body: <p>I'm using LINQ to Sharepoint and I've got big problem with saving entity which have user field. SPMetal generated me User field like string property, so I try tu do something like this:</p>
  
  <pre><code>SomeEntity e = new SomeEntity() { ..., User = user.ID, ... };
  dataContext.XXX.InsertOnSubmit(e);
  dataContext.SubmitChanges();
  </code></pre>
  
  <p>user variable is type of SPUser, I tried also User = user.Sid, user.LoginName and id:#domain\login name but anything of this didn't working. User field is always empty.</p>
  
  <p>Please do anybody know how to correctly save item with user field?</p>