You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We ran into an issue where our base class contains a property named Id. Our projections are inheriting from that base class. When querying the projection the Id property is empty.
public class Root {
public Guid Id {get;set;}
}
public class Employee: Root {
public string Name {get;set;}
public string EmployeeId {get;set;}
}
var emp = _session.Query<Employee>().FirstOrDefault(e => e.Id = Guid.Parse("df0916ac-c00d-4843-8b58-fbb8325e0aeb"));
The employee object does come back, but the Id is an empty Guid.
The text was updated successfully, but these errors were encountered:
ddivita
changed the title
Projections inherited from base classes that hides the Id property is empty.
Projections inherited from a base classes that hides the Id property, projects to an empty Id.
Oct 16, 2019
ddivita
changed the title
Projections inherited from a base classes that hides the Id property, projects to an empty Id.
Projections inherited from a base class that hides the Id property, projects to an empty Id.
Oct 16, 2019
We ran into an issue where our base class contains a property named
Id
. Our projections are inheriting from that base class. When querying the projection theId
property is empty.var emp = _session.Query<Employee>().FirstOrDefault(e => e.Id = Guid.Parse("df0916ac-c00d-4843-8b58-fbb8325e0aeb"));
The employee object does come back, but the
Id
is an empty Guid.The text was updated successfully, but these errors were encountered: