# Functions

Source: https://help.codestencil.com/code-nanites/functions

This file - `GetPrimaryKey.Functions.cs` is the only place you are expected to add your code.

The code you add ( in green) updates the Output property which is sent back to CodeStencil.

`GetPrimaryKey.Functions.cs`:

```
using ZeraSystems.CodeStencil.Contracts;
namespace ZeraSystems.CodeNanite.Schema
{
    public partial class GetPrimaryKey
    {
        private void MainFunction()
        {
            Output = GetTable(Input) +"."+ GetPrimaryKey(Input) ;
        }
    }
}
```
