Creates a SqlCommandSelect to SELECT a DataObject using the object's properties with the mark, in the nicks, ::id and ::pkey, filtering all other objects.
| obj |
the object to create the command from |
| use_pkey |
change the use of ::id properties with the ones marked as ::pkey |
|
a new SqlCommandSelect |