I have a database with the following table:
User { UserId, Name, Number, DateCreated, DateEffective, DateEnd, DateReplaced }
I provide information in a database containing this table through WCF data services.
1) columns: DateCreated, DateEffective, DateEnd, DateReplaced are for storing historical records and, as such, should not be displayed to clients using my WCF data service.
2) also, when the client makes a request:
var q = from u in service.Users select u;
I want it to return only those users whose DateEnd column is set to null.
Is there any way to achieve this functionality?
source share