what alternatives controlling enhance linq ado.net information use query?
i am wondering there any alternatives controlling enhance pivotal behaving an linq ado.net information services query. enhance slight does me information i am prying in, nonetheless requires me know sub-objects i am going operative advance. comprehensive benefit those sub-objects idle hallowed me i opening them, nonetheless doesn't feeling an choice (i supplement idle loading sub-object property, nonetheless gets wiped out i an transform information use reference).
does anyone have any suggestions/best practices/alternatives situation? thanks.
===== instance formula controlling member mailingaddress =====
works:
var me = (from m ctx.member.expand("mailingaddress")
where m.memberid == 10000
name m).first();
messagebox.show(me.mailingaddress.street);
would move (would unequivocally following went hallowed mailingaddress)
var me = (from m ctx.member
where m.memberid == 10000
name m).first();
messagebox.show(me.mailingaddress.street);
or during slightest (note: something identical this, mailingaddressreference, works server side i linq entities use operation)
var me = (from m ctx.member
where m.memberid == 10000
name m).first();
if (!(me.mailingaddress.isloaded())) me.mailingaddress.load()
messagebox.show(me.mailingaddress.street);
Comments
Post a Comment