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); }
public UserDAO(DataModelContainer ctx) { _ctx = ctx; }
public CommentDAO(DataModelContainer ctx) { _ctx = ctx; }
public RatingDAO(DataModelContainer ctx) { _ctx = ctx; }