/// <summary> /// The class of the constreuctor, it initializes helper classes /// </summary> public DatabaseOperations() { dbContext = new MultiMediaContext(); playlistOperationsHelper = new PlaylistDatabaseOperationsHelper(dbContext); treeViewNodeDatabaseHelper = new TreeViewNodeOperationsDatabaseHelper(dbContext); }
/// <summary> /// Constructor, initiating context helper classes /// </summary> /// <param name="dbContextIn">dbContext</param> public TreeViewNodeOperationsDatabaseHelper(MultiMediaContext dbContextIn) { dbContext = dbContextIn; dbModelToApplicationModel = new DbModelToApplicationModel(); }
/// <summary> /// Constructor initializing the context and helper classes /// </summary> /// <param name="dbContextIn"></param> public PlaylistDatabaseOperationsHelper(MultiMediaContext dbContextIn) { dbContext = dbContextIn; dbModelToApplicationModel = new DbModelToApplicationModel(); }