using System; using eBiss.Api; using eBiss.DbAdapter; namespace MyNameSpace { public static class Variables { public static int myfoo = 1; public static string mybar = "whatever"; } }
[Description("MyNumeric")] public int FieldFoo = Variables.myfoo; [Description("MyString")] public int FieldBar = Variables.mybar;
[NotMapped]// This declares the field as not being mapped to the database. It is ignored on write public int MyLocalVar{ get { return AnyLocalData; } }
Hinweis: Um eine Variablen mit Werten aus anderen Datenelementen zu befüllen verwendet man die get Methode.