PublicAPI.Projects.RiskELMA API Documentation
Risk
Access path: PublicAPI.Projects.Risk
Methods

  NameDescription
Public methodCount 
Returns the total number of objects of this type
Public methodCount(IEntityFilter)
Get Total Number of Objects by Filter
Public methodCreate
Create New Entity (without a Database entry)
Public methodCreateRisk
Create a project risk. Creates an object without saving to database
Public methodDelete
Delete the entity
Public methodFilter
Creates an assistant for working with the "Project Risk" object filter
Public methodFind(FetchOptions)
Find objects according to fetch options
Public methodFind(String)
Find objects according to the filter in the EQL language
Public methodFind(IEntityFilter, FetchOptions)
Fing objects according to fetch options and filter
Public methodFindByIdArray
Find All Objects by Array IDs
Public methodIsDirty
Check, if there are unsaved changes in the object
Public methodIsNew
Check, if the object is new (not saved in the database)
Public methodLoad(Guid)
Load by UID. If not found, an exception is invoked
Public methodLoad(Int64)
Load by ID. If not found, an exception is invoked
Public methodLoadOrCreate(Guid)
Load by ID. If not found, the new object is returned
Public methodLoadOrCreate(Int64)
Load by ID. If not found, the new object is returned
Public methodLoadOrNull(Guid)
Load by UID. If not found, null is returned
Public methodLoadOrNull(Int64)
Load by ID. If not found, null is returned
Public methodRefresh
Refresh (read over) Object from Database
Public methodResolveRisk
Resolve the risk
Public methodSave
Save entity to database
Back to Top
Properties

  NameDescription
Public propertyTypeUid
Returns the unique object identifier "Project Risk"
Back to Top
Remarks

Section containing methods for managing risks
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