Simple |
Initializes a new instance of the SimplePersonV1 class.
Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public SimplePersonV1( Guid id, Guid parentId, Guid categoryId )
Parameters
- id Guid
- The person identifier.
- parentId Guid
- The parent identifier.
- categoryId Guid
- The category identifier.
Remarks
Supported from
Example
The following example illustrates how to create SimplePerson as Company
C#
using Gamanet.C4.SDK.Enums.Core; using Gamanet.C4.SimpleInterfaces; using Gamanet.C4.SDK.Enums.Persons; using System; public class CreateCompany { static void Main() { // create instance of simple person var company = new SimplePerson( Guid.NewGuid(), // new Id EntityRoot.Person, // Id of the parent, actually it is person root PersonCategory.Company); // Id of the person category // all the remaining data is stored in the Data property company.Data["Name"] = "Gamanet a.s"; company.Data["Phone"] = "+421 911 140 031"; } }
See Also