Beispiel #1
0
        public T Single(Func <T, bool> predicate)
        {
            DocumentBeforeEnteringSession <T> tuple = documents.Single(Filter(predicate));

            return(tuple.AddToSessionAndReturnWiredInstance());
        }
Beispiel #2
0
        public T FirstOrDefault()
        {
            DocumentBeforeEnteringSession <T> tuple = documents.FirstOrDefault();

            return(tuple.AddToSessionAndReturnWiredInstance());
        }
Beispiel #3
0
        public T Single()
        {
            DocumentBeforeEnteringSession <T> tuple = documents.Single();

            return(tuple.AddToSessionAndReturnWiredInstance());
        }