protected override Expression <Func <NotifyRecords, bool> > ByAuth(object value)
        {
            if (value is IUserSession session)
            {
                return(LambdaExpressionT.CaptureFuncParameter <NotifyRecords>(nameof(NotifyRecords.UserId), session.UserId));
            }

            return(x => false);
        }
Beispiel #2
0
        protected override Expression <Func <SensorData, bool> > ByAuth(object value)
        {
            if (value is IUserSession userSession)
            {
                return(LambdaExpressionT.CaptureFuncParameter <SensorData>(nameof(SensorData.UserId),
                                                                           userSession.UserId));
            }

            return(x => false);
        }
Beispiel #3
0
        protected Expression <Func <T, bool> > ById(object id)
        {
            T typeKeeper = null;

            return(LambdaExpressionT.CaptureFuncParameter <T>(nameof(typeKeeper.Id), id));
        }