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; } }
Note: To fill a variable with values from other data elements use the get method.