Mehmet Avcı Mehmet Avcı - 1 year ago 53
SQL Question

How do I get a space in my property name?

I have the following query:

var query = _projectEmployeesBLL.GetAll()
.Where(x => x.EmployeeID == employee.EmployeeID
&& x.project.isActive == true
&& x.project.isDelected == false)
.Select(x => new
ProjeAdı = x.project.Name,

The problem is that I make the property
in the Select clause. I want the property to match the sql column,
Proje Adı
(note the space). How can I do that?

Answer Source

aliases cant have spaces between them , just like any variable name cant have white space, they are considered as bad naming conventions, you can use _(underscore) eg. Proje_Adi

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download