在Linq中将NULL和字符串连接到实体查询

mar*_*are 1 c# linq-to-entities

此查询实际上有效但返回ClientName设置为nullFirstName或Lastname的新对象null(两者中的任何一个).我怎么能绕过那个?我想有一个空字符串而不是null那些行.

var clients =
                    from client in _repository.GetAll()
                    where (client.Firstname.StartsWith(query) || client.Lastname.StartsWith(query))
                    select new
                            {
                                ClientName = (client.Firstname + " " + client.Lastname).Trim(),
                                client.Firstname,
                                client.Lastname,
                                client.Address1,
                                client.Address2,
                                client.client_id,
                                client.PrettyId,
                                client.PostCode.postalcode,
                                client.PostCode.postname
                            };
Run Code Online (Sandbox Code Playgroud)

n8w*_*wrl 10

((client.Firstname ?? "") + " " + (client.Lastname ?? "")).Trim();
Run Code Online (Sandbox Code Playgroud)