Quite often I see this question in the newsgroup: How do I set a lookup to a NULL value?Here is the answer for when you're working in server side code:Entity.Lookup = new Lookup(); Entity.Lookup.IsNull = true; Entity.Lookup.IsNullSpecified = true; this also works for customers:contact.parentcustomerid = new Customer();contact.parentcustomerid.IsNull = true;contact.parentcustomerid.IsNullSpecified
Không có nhận xét nào:
Đăng nhận xét