0

Resolved

0001 Database Capability (Phase 1) - 15 Create Actions - Manage Related Entities (Shenkey)

description

AddNavigationProperty         AddNewRelatedEntity               o   ParentEntityID, RelatedEntityName, PropertyName, Multiplicity         UpdateRelatedEntity               o   ParentEntityID, RelatedEntityID, PropertyName, Multiplicity         UpdateMultiplicity               o   RelatedEntityID, Multiplicity (enum value passed to server as integer)         RemoveRelatedEntity Related requirements: • Manages Navigation Properties 

37 User will have the ability to add a related entity38 User will have a context menu item to “Add Related Entity”

39 User will get a sub-menu with the following options:o Undefined Multiplicityo One-to-Manyo One-to-Zero or Oneo Many-to-Oneo Many-to-Manyo Relationship Wizard… (to be defined in later project) • Manages Navigation Properties - Select Multiplicity 

40 User will have the ability to select the multiplicity after adding an entity with Undefined Multiplicity • Manages Navigation Properties - Select existing or create new related entity 

41 User will have the ability to select an existing related entity or create a new entity

42 User will have the ability to enter the related entity and enter the navigation property name in a single operation (ie greater than key functionality) • Manages Navigation Properties - Remove related entity 

43 User will have the ability to remove a related entity

44 System will provide a dialog prompting “Are you sure? Yes/No” when a related entity is removed

45 A related entity can be removed via the Delete keystroke as well as via a context menu item

46 Removing a related entity will not delete the related entity, just remove the relationship • Manages Navigation Properties - Change Multiplicity 

47 User will have the ability to change the multiplicity of a related entity


Reproduction Steps:

New Related Entity
1 - Select an EntityType node in tree view.
2 - Right-click on the selected node. A context menu should appear.
3 - Select the Add New NavigationProperty menu item.
4 - A new editable node should be added to the tree underneath the EntityType.
5 - Type in a name for the node, then press the Enter key. The NodeExpander should appear.
6 - Click the Expand button. The Select New or Existing Entity slot should appear.
7 - Select the New Entity option from the dropdown menu.
8 - Click the next Expand button. The New Entity slot should appear.
9 - Enter a name for a new EntityType.
10 - Click the next Expand button. The Select Multiplicity slot should appear. The next Expand button should turn into a green Commit button.
11 - Select a multiplicity option from the dropdown menu.
12 - Click the Commit button.
13 - The new NavigationProperty should be added to the tree underneath the EntityType.
14 - The new NavigationProperty should have the new related entity as a child node.
15 - Select the NavigationProperty.
16 - Click the Expand button. The Select Multiplicity slot should appear, with the correct multiplicity already selected in the dropdown menu.
17 - Verify that the new EntitySet and EntityType in the view tree under the EntityContainer.
18 - Verify that the related EntityType has a child NavigationProperty, and that the related NavigationProperty that has the starting EntityType as a child.
19 - Select the related NavigationProperty. The NodeExpander should appear.
20 - Click the Expand button. The Select Multiplicity slot should appear, with the opposite multiplicity already selected in the dropdown menu.
21 - Refresh the page, and repeat steps 13 through 20 to verify the changes have been saved.


Existing Related Entity
1 - Select an EntityType node in tree view.
2 - Right-click on the selected node. A context menu should appear.
3 - Select the Add New NavigationProperty menu item.
4 - A new editable node should be added to the tree underneath the EntityType.
5 - Type in a name for the node, then press the Enter key. The NodeExpander should appear.
6 - Click the Expand button. The Select New or Existing Entity slot should appear.
7 - Select the Existing Entity option from the dropdown menu.
8 - Click the next Expand button. The Existing Entity slot should appear.
9 - Select an existing entity from the dropdown menu. The dropdown menu will display "Loading..." while it retrieves existing entities.
10 - Click the next Expand button. The Select Multiplicity slot should appear. The next Expand button should turn into a green Commit button.
11 - Select a multiplicity option from the dropdown menu.
12 - Click the Commit button.
13 - The new NavigationProperty should be added to the tree underneath the EntityType.
14 - The new NavigationProperty should have the new related entity as a child node.
15 - Select the NavigationProperty.
16 - Click the Expand button. The Select Multiplicity slot should appear, with the correct multiplicity already selected in the dropdown menu.
17 - Verify that the related EntityType has a child NavigationProperty, and that the related NavigationProperty that has the starting EntityType as a child.
18 - Select the related NavigationProperty. The NodeExpander should appear.
19 - Click the Expand button. The Select Multiplicity slot should appear, with the opposite multiplicity already selected in the dropdown menu.
20 - Refresh the page, and repeat steps 13 through 19 to verify the changes have been saved.

comments