PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/MM.Persistence.NH/Repositories/MovieRepository.cs

#
C# | 24 lines | 19 code | 5 blank | 0 comment | 0 complexity | bc69a22f79e380fc7b7c662551856280 MD5 | raw file
 1using System.Collections.Generic;
 2using System.Linq;
 3using MM.Contract.Movies;
 4using MM.Domain;
 5using NHibernate;
 6
 7namespace MM.Persistence.NH.Repositories
 8{
 9    public class MovieRepository : Repository<Movie>, IMovieRepository
10    {
11
12        public MovieRepository(ISessionFactory factory ) : base(factory)
13        {}
14
15        #region Miembros de IMovieRepository
16
17        public IList<Movie> GetAllMovies()
18        {
19            return Session.CreateCriteria<Movie>().List<Movie>();
20        }
21
22        #endregion
23    }
24}