Les méthodes
La méthode anonymize
La méthode anonymize permet d'anonymiser des propriétés d'une entité. Signature \<T>(parentEntity T, { property string; method 'pseudonymization' | Function }\[]) => T L'OIP Core offre des méthodes d'anonymisation standards.
La méthode create
Learn how to use the `create` method to create entities in memory, but note that it does not save them to the database for entities other than `project`.
La méthode delete
Learn how to use the `delete` method to remove a specific entity from an entity array without deleting it from the database. Discover the importance of calling the `save` method from the `project` entity to save the modifications to the database.
La méthode duplicate
La méthode duplicate est uniquement accessible depuis l'entité project . Elle permet de dupliquer un projet complet et toutes ses sous entités.
La méthode findAll
Learn how to use the powerful `findAll` method to retrieve a list of entities efficiently. This comprehensive document covers everything, from the flexible filtering options to sorting in the desired order using the `sort` parameter.
La méthode findOrCreate
La fonction findOrCreate permet de récupérer une liste d'entités ou une entité nouvellement créée si aucune n'existe. Elle accepte les mêmes paramètres que la fonction findAll .
La méthode get
Learn how to retrieve existing entities using the `get` method with this comprehensive document. Discover the various ways to retrieve a `project` entity by `id`, `externalId`, or `signatureId`, accompanied by helpful code examples.
La méthode save
Learn how to use the `save` method to save the state of an entity and its related entities in the database.
Les méthodes encrypt / decrypt
Les méthodes encrypt / decrypt permettent d'encoder et de décoder une propriété d'une entité.
Path
La méthode Entities accepte en entrée un path afin de faciliter la récupération / sauvegarde de sous-entités. Ce path part de l'entité Project .