Class WMAssetAssociation
A DTO class representing individual embeddings as they are stored in the database.
Inheritance
WMAssetAssociation
Assembly: WMServer.dll
Syntax
public class WMAssetAssociation : IDbEntity, IWMEntity
Properties
Asset1ID
Declaration
public string Asset1ID { get; set; }
Property Value
Asset1Type
Declaration
public string Asset1Type { get; set; }
Property Value
Asset2ID
Declaration
public string Asset2ID { get; set; }
Property Value
Asset2Type
Declaration
public string Asset2Type { get; set; }
Property Value
CreatedBy
ID of the user that created this entity.
Declaration
public string CreatedBy { get; set; }
Property Value
CreatedDate
Date and time this entity was last updated.
Declaration
public DateTime CreatedDate { get; set; }
Property Value
ID
The unique ID of this embedding
Declaration
public string ID { get; set; }
Property Value
LastUpdatedBy
ID of the user that last updated this entity.
Declaration
public string LastUpdatedBy { get; set; }
Property Value
LastUpdatedDate
Date and time at which this entity was last updated.
Declaration
public DateTime LastUpdatedDate { get; set; }
Property Value
Relationship
The relationship between asset 1 and 2
Declaration
public string Relationship { get; set; }
Property Value
Methods
AnyAssociation(WMAssetBase?, WMAssetBase?, RelationshipType, WMAppDbContext)
Returns whether any associations exist between Asset1 and Asset2 with relationship. If either Asset1 or Asset2 are null, they will be exempted from the search.
i.e. If Asset1 and Asset2 are stated, only the single association between the two are considered.
If only Asset1 or Asset2 are stated, all of their corresponding associations will be considered.
If neither is stated, every association with the given relationship will be considered.
Declaration
public static Task<bool> AnyAssociation(WMAssetBase? Asset1, WMAssetBase? Asset2, WMAssetAssociation.RelationshipType relationship, WMAppDbContext context)
Parameters
Returns
CreateAssociation(WMPrincipal, WMAssetBase, WMAssetBase, RelationshipType, WMAppDbContext)
Creates a new association with the given parameters
Declaration
public static Task<bool> CreateAssociation(WMPrincipal principal, WMAssetBase Asset1, WMAssetBase Asset2, WMAssetAssociation.RelationshipType relationship, WMAppDbContext context)
Parameters
Returns
Type |
Description |
Task<bool> |
True if an association was created, false otherwise
|
CreateDocumentAccess(WMPrincipal, WMAssetIdentifier, WMAssetIdentifier, WMAppDbContext)
Declaration
public static Task CreateDocumentAccess(WMPrincipal principal, WMAssetIdentifier DocumentIndexIdentifier, WMAssetIdentifier DocumentIdentifier, WMAppDbContext context)
Parameters
Returns
CreateDocumentIndexAccess(WMPrincipal, WMAssetIdentifier, WMAssetIdentifier, WMAppDbContext)
Declaration
public static Task CreateDocumentIndexAccess(WMPrincipal principal, WMAssetIdentifier LLMIdentifier, WMAssetIdentifier DocumentIndexIdentifier, WMAppDbContext context)
Parameters
Returns
DeleteAllDocumentAssociations(WMPrincipal, WMAssetIdentifier, WMAppDbContext)
Declaration
public static Task DeleteAllDocumentAssociations(WMPrincipal principal, WMAssetIdentifier DocumentIdentifier, WMAppDbContext context)
Parameters
Returns
DeleteAllDocumentIndexAssociations(WMPrincipal, WMAssetIdentifier, WMAppDbContext)
Declaration
public static Task DeleteAllDocumentIndexAssociations(WMPrincipal principal, WMAssetIdentifier DocumentIndexIdentifier, WMAppDbContext context)
Parameters
Returns
DeleteAllLLMAssociations(WMPrincipal, WMAssetIdentifier, WMAppDbContext)
Declaration
public static Task DeleteAllLLMAssociations(WMPrincipal principal, WMAssetIdentifier LLMIdentifier, WMAppDbContext context)
Parameters
Returns
DeleteAssociation(WMAssetBase?, WMAssetBase?, RelationshipType, WMAppDbContext)
Deletes all associations that exist between Asset1 and Asset2 with relationship. If either Asset1 or Asset2 are null, they will be exempted from the search.
i.e. If Asset1 and Asset2 are stated, only the single association between the two are considered.
If only Asset1 or Asset2 are stated, all of their corresponding associations will be considered.
If neither is stated, every association with the given relationship will be considered.
Declaration
public static Task DeleteAssociation(WMAssetBase? Asset1, WMAssetBase? Asset2, WMAssetAssociation.RelationshipType relationship, WMAppDbContext context)
Parameters
Returns
DeleteDocumentAccess(WMPrincipal, WMAssetIdentifier, WMAssetIdentifier, WMAppDbContext)
Declaration
public static Task DeleteDocumentAccess(WMPrincipal principal, WMAssetIdentifier DocumentIndexIdentifier, WMAssetIdentifier DocumentIdentifier, WMAppDbContext context)
Parameters
Returns
DeleteDocumentIndexAccess(WMPrincipal, WMAssetIdentifier, WMAssetIdentifier, WMAppDbContext)
Declaration
public static Task DeleteDocumentIndexAccess(WMPrincipal principal, WMAssetIdentifier LLMIdentifier, WMAssetIdentifier DocumentIndexIdentifier, WMAppDbContext context)
Parameters
Returns
GetAssociation(WMAssetBase?, WMAssetBase?, RelationshipType, WMAppDbContext)
Returns all asset associations between Asset1 and Asset2 with relationship. If either Asset1 or Asset2 are null, they will be exempted from the search.
i.e. If Asset1 and Asset2 are stated, only the single association between the two are returned.
If only Asset1 or Asset2 are stated, all of their corresponding associations will be returned.
If neither is stated, every association with the given relationship will be returned.
Declaration
public static Task<List<WMAssetAssociation>> GetAssociation(WMAssetBase? Asset1, WMAssetBase? Asset2, WMAssetAssociation.RelationshipType relationship, WMAppDbContext context)
Parameters
Returns
UpdateAllDocumentAssociations(WMPrincipal, WMAssetIdentifier, WMAppDbContext)
Declaration
public static Task UpdateAllDocumentAssociations(WMPrincipal principal, WMAssetIdentifier DocumentIdentifier, WMAppDbContext context)
Parameters
Returns
Implements