Create C# functions with an AI Assistant

Datasources: Learn C# with Kuika.

While developing an application with Kuika, you can use various data sources and create Custom Actions with various tools. One of the data sources and Custom Action creation tools you can use is C#. With Kuika, you can quickly integrate C# into your project during the application development process.

Kuika ile uygulama geliştirme sürecinde C#' ı hızlı bir şekilde projene entegre edebilirsin.

This training content consists of the following topics:

  1. Creating Data Source Connection and Custom Action with C#

A. Creating Data Source Connection and Custom Action with C#

To make a data source connection with C# and create a Custom Action, go to the Datasources view mode in the project you are working on in Kuika.

You can see the datasources, actions and tables in the application you developed through the left menu in the Datasources view mode, and you can add a new data source, a new action, and a new table.

+ icon opposite the datasources heading to add a new data source to your application.

To add a data source with C# to the application you developed and create a Custom Action, select and name C# as the Datasource type on the screen that opens. After completing the naming process, select the C# template. The C# templates offered by Kuika are given below.

  • Default C# Function

  • Custom Authentication Provider

  • Custom Authorization Provider

After selecting the template, click the CREATE button.

You can make a data connection with the default C# functions or change the template on the screen that opens.

You can change the template via the drop-down menu under the Template title. Click the drop-down menu under the Template heading to perform the template change. Choose the one that suits your needs from the templates in the menu. Following the template you selected, the code contained in the C# editor will be updated according to the template properties.

Custom Authentication Provider template to use custom authentication provider functions.

You can use the Custom Authorization Provider template to use custom authorization provider functions.

You can use the Verification Code Sender Provider template to verify users' identities or send temporary or one-time codes for security purposes.

Write the data connection and Custom Action content with C# programming language following the templates you have chosen and click the CREATE button to create then Datasources link.

B .Build C# Functions with AI Assistant.

By entering the appropriate prompt for the artificial intelligence assistant added to the C # editor, you can prepare C # functions in seconds without writing any code.

Create a new C# Action under the C# header you added to the new data source from the Datasources view mode.

In the C# name field, type the function name. You can continue to write the query directly to the C# editor.

In general, the improvements we made on the C# Actions Editor are given below;

  1. Action naming field

  2. C# template field

  3. AI assistant for C# functions

  4. Adding C# functions to the C# Editor

  5. Creating C# functions

1. Action naming field

You can add or update the action name with the C# Actions name field. You can use English characters as well as special characters “-” or “_” in naming.

2. C# Template Screen

There are C# Datasource templates such as Default C# Function, Custom Authentication Provider, and Custom Authorization Provider. You can select the template you need from this field and have it added to the editor.

The change you make in this field will delete the script you wrote before in the Editor.

3. Use AI assistant for C# functions

While writing your C# functions, you can quickly prepare them with AI support. Open the chat area with Generate with AI from the top section. Define the function you want to create.

“Hello world rotating function”

A function related to artificial intelligence is prepared. You can copy the prepared function.

4. Adding C# functions to the C# Editor

You can click the blue button to add the copied function to the C# Editor.

5. Creating C# functions

After adding the functions to the C# Editor, you can create the function you have prepared by clicking the CREATE button, and when you open a registered function, you can update it with the UPDATE button.

Last updated