<fetch count="50" >
<entity name="cint_cwp_login" >
<link-entity name="contact" from="contactid" to="cint_contact_id" link-type="inner" />
</entity>
</fetch>
The following code is generated - and the third attribute to the AddLink-method is incorrect - contact. Should be contactid.
// Instantiate QueryExpression QEcint_cwp_login
var QEcint_cwp_login = new QueryExpression("cint_cwp_login");
// Add all columns to QEcint_cwp_login.ColumnSet
QEcint_cwp_login.ColumnSet.AllColumns = true;
// Add link-entity QEcint_cwp_login_contact
var QEcint_cwp_login_contact = QEcint_cwp_login.AddLink("contact", "cint_contact_id", "contact");