How can I extend queries with additional fields
I have the following model:
Depending on the information available, I would like to expose a "name" field that contains one of the following values (in order of priority):
Title Firstname Lastname
Firstname Lastname
Title Firstname
FirstName
Title Lastname
Lastname
Company Name
Null
How can I do this?
Depending on the information available, I would like to expose a "name" field that contains one of the following values (in order of priority):
Title Firstname Lastname
Firstname Lastname
Title Firstname
FirstName
Title Lastname
Lastname
Company Name
Null
How can I do this?