eBiss 3

Hilfe & Dokumentation

User Tools

Site Tools


en:transformation:mappings:objektdefinition:variablen

Variables in mapping objects

Global variables

using System;
using eBiss.Api;
using eBiss.DbAdapter;
 
namespace MyNameSpace
{
    public static class Variables
    {
        public static int myfoo    = 1;
        public static string mybar = "whatever";
    }
}

Verwendung global definierter Variablen

[Description("MyNumeric")]
public int FieldFoo = Variables.myfoo;
[Description("MyString")]
public int FieldBar = Variables.mybar;

Lokale Variable

[NotMapped]// This declares the field as not being mapped to the database. It is ignored on write
public int MyLocalVar{ 
	get { 
		return AnyLocalData; 
		} 
	}

Note: To fill a variable with values from other data elements use the get method.

System Variable

    public class SystemVariablenName: ISystemVariableConsumer
    {
        public IDictionary Variables
        {
            get
            {
                throw new NotImplementedException();
            }
 
            set
            {
                throw new NotImplementedException();
            }
        }
    }
en/transformation/mappings/objektdefinition/variablen.txt · Last modified: 2024/02/20 08:15 by 127.0.0.1