예제 #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;
 }