Пример #1
0
        public DataManager()
        {
            var context = new DataModelContainer();

            _userDAO    = new UserDAO(context);
            _movieDAO   = new MovieDAO(context);
            _ratingDAO  = new RatingDAO(context);
            _commentDAO = new CommentDAO(context);

            var includeThisDllPleaseDotNet = typeof(System.Data.Entity.SqlServer.SqlProviderServices);
        }
Пример #2
0
 public UserDAO(DataModelContainer ctx)
 {
     _ctx = ctx;
 }
Пример #3
0
 public CommentDAO(DataModelContainer ctx)
 {
     _ctx = ctx;
 }
Пример #4
0
 public RatingDAO(DataModelContainer ctx)
 {
     _ctx = ctx;
 }