Assigining ID vs object - linq to sql
Posted
by jess
on Stack Overflow
See other posts from Stack Overflow
or by jess
Published on 2010-03-22T16:15:17Z
Indexed on
2010/03/22
16:21 UTC
Read the original article
Hit count: 245
linq-to-sql
Say, I have an entity Customer which has relationship with city,order etc.Now,when I am adding a customer object,should I assign customer.cityid, or customer.city? Now,from form I get cityid from dropdown,to assign city object,I will have to make a query using id selected.
© Stack Overflow or respective owner