Risk
Access path: PublicAPI.Projects.RiskMethods
Name | Description | |
---|---|---|
Count |
Returns the total number of objects of this type
| |
Count(IEntityFilter) |
Get Total Number of Objects by Filter
| |
Create |
Create New Entity (without a Database entry)
| |
CreateRisk |
Create a project risk.
Creates an object without saving to database
| |
Delete |
Delete the entity
| |
Filter |
Creates an assistant for working with the "Project Risk" object filter
| |
Find(FetchOptions) |
Find objects according to fetch options
| |
Find(String) |
Find objects according to the filter in the EQL language
| |
Find(IEntityFilter, FetchOptions) |
Fing objects according to fetch options and filter
| |
FindByIdArray |
Find All Objects by Array IDs
| |
IsDirty |
Check, if there are unsaved changes in the object
| |
IsNew |
Check, if the object is new (not saved in the database)
| |
Load(Guid) |
Load by UID. If not found, an exception is invoked
| |
Load(Int64) |
Load by ID. If not found, an exception is invoked
| |
LoadOrCreate(Guid) |
Load by ID. If not found, the new object is returned
| |
LoadOrCreate(Int64) |
Load by ID. If not found, the new object is returned
| |
LoadOrNull(Guid) |
Load by UID. If not found, null is returned
| |
LoadOrNull(Int64) |
Load by ID. If not found, null is returned
| |
Refresh |
Refresh (read over) Object from Database
| |
ResolveRisk |
Resolve the risk
| |
Save |
Save entity to database
|
Properties
Name | Description | |
---|---|---|
TypeUid |
Returns the unique object identifier "Project Risk"
|
Remarks
Examples
Create a risk for the project created here
var myRisk = PublicAPI.Projects.Risk.CreateRisk(myProject);
Before working with variable myRisk, you mus fill its required fields
//risk subject myRisk.Name = "Sample Risk"; //risk severity myRisk.Severity = PublicAPI.Enums.Projects.RiskSeverity.Normal;
Please save the object in the base to ensure its proper functioning
myRisk.Save();
Resolve the risk
PublicAPI.Projects.Risk.ResolveRisk(myRisk, "The risk is allowed!!!");
See Also