Tuesday, 20 February 2007
Set a lookup to NULL
Posted on 13:30 by Unknown
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
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment