Zontroy Repeating File

zref

Zontroy Repeating File is used to create multiple code files and generate lines of code inside those. It uses .zref extension. Name of zref file is set programatically by entering a name in Zontroy Programming Language.
Multiple entities to multiple code files

File Naming Format

[file_name].[file_extension].zref

File Naming Example

[[[zg-entity...zg-name]]].java.zref

Code Example

A simple usage example of zref file in C#.
// Izg-singularize(((zg-entity...zg-name)))Service.cs.zref
using Oprazi.Dto.DTOs;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
​
namespace Oprazi.Bll.Services.IServices
{
public interface Izg-singularize(((zg-entity...zg-name)))Service
{
Task<zg-singularize(((zg-entity...zg-name)))ToResponseDTO> Getzg-pluralize(((zg-entity...zg-name)))(zg-singularize(((zg-entity...zg-name)))ToFilterDTO filter);
Task<zg-singularize(((zg-entity...zg-name)))DTO> Getzg-singularize(((zg-entity...zg-name)))ById(int Id);
Task<zg-singularize(((zg-entity...zg-name)))DTO> Addzg-singularize(((zg-entity...zg-name)))(zg-singularize(((zg-entity...zg-name)))ToAddDTO zg-lower(((zg-singularize(((zg-entity...zg-name))))))ToAddDTO);
Task Updatezg-singularize(((zg-entity...zg-name)))(zg-singularize(((zg-entity...zg-name)))DTO zg-lower(((zg-singularize(((zg-entity...zg-name))))))DTO);
Task Deletezg-singularize(((zg-entity...zg-name)))(int Id);
}
}

Output Example

// IBankService.cs
using Oprazi.Dto.DTOs;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
​
namespace Oprazi.Bll.Services.IServices
{
public interface IBankService
{
Task<BankToResponseDTO> GetBanks(BankToFilterDTO filter);
Task<BankDTO> GetBankById(int Id);
Task<BankDTO> AddBank(BankToAddDTO bankToAddDTO);
Task UpdateBank(BankDTO bankDTO);
Task DeleteBank(int Id);
}
}
// IBankBranchService.cs
using Oprazi.Dto.DTOs;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
​
namespace Oprazi.Bll.Services.IServices
{
public interface IBankBranchService
{
Task<BankBranchToResponseDTO> GetBankBranches(BankBranchToFilterDTO filter);
Task<BankBranchDTO> GetBankBranchById(int Id);
Task<BankBranchDTO> AddBankBranch(BankBranchToAddDTO bankbranchToAddDTO);
Task UpdateBankBranch(BankBranchDTO bankbranchDTO);
Task DeleteBankBranch(int Id);
}
}
​
// IBankAccountService.cs
using Oprazi.Dto.DTOs;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
​
namespace Oprazi.Bll.Services.IServices
{
public interface IBankAccountService
{
Task<BankAccountToResponseDTO> GetBankAccounts(BankAccountToFilterDTO filter);
Task<BankAccountDTO> GetBankAccountById(int Id);
Task<BankAccountDTO> AddBankAccount(BankAccountToAddDTO bankaccountToAddDTO);
Task UpdateBankAccount(BankAccountDTO bankaccountDTO);
Task DeleteBankAccount(int Id);
}
}
​
Good to know: In daily programming, controller, validator, service, repository etc classes are sample classes which for using a repeating code file.