====== 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;
}
}
{{:images:sign_warning.png?nolink|}}**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();
}
}
}