this support Author Lookup Field Query?

Jan 22, 2013 at 4:33 AM

Camlex.net how do like this CAML Query:

int _id=web.EnsureUser("loginName").ID;
SPQuery query = new SPQuery();
query.Query = @"<Where><Eq><FieldRef Name='Author' LookupId='TRUE' /><Value Type='Integer'>" + _id + @"</Value></Eq></Where><OrderBy><FieldRef Name='Created' Ascending='False' /></OrderBy>";

thanks.

Jan 22, 2013 at 4:37 AM

  I find this http://camlex.codeplex.com/discussions/264821 , 

 

string caml = Camlex.Query().Where(x => x["Author"] == (DataTypes.UserId)"123").ToString();
and 
string caml = Camlex.Query().Where(x => x["Author"] == (DataTypes.Integer)Camlex.UserID).ToString();

cool, thanks;