Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (29 sloc) 1.51 KB

Object Mapping

Platformus has built-in object mapper that allows you to map the C# objects on the Platformus ones and vice versa. Using this feature you can, for example, create a comment object inside a custom form handler.

Let’s see how it works. First of all, we need to create a class in the Platformus backend. Create a simple Cat class with two properties: Name (localizable single line plain text) and Birthday (date):


It corresponds next C# class (create it inside the main web application project):

Now you can use the StronglyTypedObjectMapper class to work with the Cat objects. To select all the cats, use this code:

To create a cat use the following code: