====== Variablen in Mapping Objekten ======
===== Globale Variablen =====
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|}}**Hinweis:** Um eine Variablen mit Werten aus anderen Datenelementen zu befüllen verwendet man die **get** Methode.
===== System Variable =====
public class SystemVariablenName: ISystemVariableConsumer
{
public IDictionary Variables
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
}