The scenario is that I have some properties that I don't want to map to EF. So I set NotMapped to them. However I want to show them on odata. So I explicitly add those properties:
var user = builder.EntitySet<User>("Users").EntityType;
user.Property(u => u.CorrectAnswerCount);
user.Property(u => u.TotalAnswerCount);
user.Property(u => u.Rank);
But the code doesn't work. Those columns are still not shown up on the payload.
var user = builder.EntitySet<User>("Users").EntityType;
user.Property(u => u.CorrectAnswerCount);
user.Property(u => u.TotalAnswerCount);
user.Property(u => u.Rank);
But the code doesn't work. Those columns are still not shown up on the payload.