Beispiel #1
0
        public BlogStory Find(FBS.Domain.Specifications.ISpecification <BlogStory> specification)
        {
            BlogStory story = null;

            try
            {
                this._storys.SingleOrDefault(specification.GetExpression().Compile());
            }
            catch (InvalidOperationException) {}

            return(story);
        }
Beispiel #2
0
 public int Count(FBS.Domain.Specifications.ISpecification <BlogStory> specification)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public IList <BlogStory> FindAll(FBS.Domain.Specifications.ISpecification <BlogStory> specification)
 {
     return(this._storys.TakeWhile(specification.GetExpression().Compile()).ToList());
 }
Beispiel #4
0
 public bool Exists(FBS.Domain.Specifications.ISpecification <BlogStory> specification)
 {
     return(this._storys.Any(specification.GetExpression().Compile()));
 }