I am creating Sharepoint List Defintion using visual studio.
1-ListA(Column 1,Column2,Column3)
2-ListB(Column4,Column5(lookup of column1))
I am craeting both list from one solution.
I want to craete a lookup Column in List B of List A,How to do it?
you will have to provide the List property with the url of the original list, e.g. Lists/MyList and the ShowField property with the title of the original column, e.g. Title
more details here
http://blogs.claritycon.com/blog/2011/05/provisioning-a-sharepoint-2010-lookup-column-with-caml/
update: archived link
https://web.archive.org/web/20150321053821/http://blogs.claritycon.com:80/blog/2011/05/provisioning-a-sharepoint-2010-lookup-column-with-caml/