After Xrm has been imported at least once somewhere in the program, display objects have the following extra methods.
database_object