CAST supports MongoDB via its NoSQL for .NET extension. As Amazon DocumentDB is MongoDB compatible, the support also applies to Amazon DocumentDB. Details about how this support is provided for .NET source code is discussed below.
Supported Client Libraries
Supported Operations
Operation | Methods Supported |
---|---|
Insert | |
Update | |
Select | |
Delete |
Objects
Icon | Description |
---|---|
DotNet MongoDB database | |
DotNet MongoDB collection | |
DotNet unknown MongoDB database | |
DotNet unknown MongoDB collection |
Links
Links are created for transaction and function point needs:
Link type | Source and destination of link | Methods supported |
---|---|---|
belongsTo | From DotNet MongoDB Collection object to DotNet MongoDB Database object | |
useInsertLink | Between the caller .NET Method (C#) object and DotNet MongoDB Collection object Between the caller .NET Method (C#) object and DotNet unknown MongoDB Collection object | |
| ||
useUpdateLink | ||
useSelectLink | ||
useDeleteLink |
Amazon DocumentDB Identification
The below mentioned objects have properties to indicate whether the object is of type MongoDB or Amazon DocumentDB.
Object | Property Description | Type of Property Value | Possible Value(s) | Meaning |
---|---|---|---|---|
DotNet MongoDB collection | Is an Amazon DocumentDB collection? | Integer | 1 | The collection object is of type Amazon DocumentDB |
0 | The collection object is of type MongoDB | |||
DotNet unknown MongoDB collection | Is an Amazon DocumentDB collection? | Integer | 1 | The collection object is of type Amazon DocumentDB |
0 | The collection object is of type MongoDB |
What results can you expect?
Once the analysis/snapshot generation has completed, you can view the results in the normal manner (for example via CAST Enlighten). Some examples are shown below.
Database and Collection Creation
Insert Operation
Delete Operation
Select Operation
Update Operation
Amazon DocumentDB Identification
Reading Database and Collection from Json File
Violations in CAST Engineering Dashboard
The CAST Engineering Dashboard recognises code violations in source applications.
Limitations
- Database and Collections are resolved in following situation:
- Anywhere in the .cs files and JSON files
- If Database and Collection values are not resolved, will create Unknown Database and Collection objects
- Setting of properties related to Amazon DocumentDB identification depends on proper resolution of connection string.