public DataSession(DataApplication application, string userAccount)
 {
     this.Application = application;
     this.UserAccount = userAccount;
     this.FStorages   = new DataStorage[application.Metadata.Classes.Count];
     this.FCentralServerConnection      = new CentralServerConnection((Integro.InMeta.Runtime.CentralServer.CentralServer)null, application.CentralServerAddress);
     this.FScriptLibraries              = new ScriptLibraries(this);
     this.FNewObjectsWithoutGeneratedId = new List <DataObject>();
     this.FUpdateLogMode    = application.Settings.UpdateLogMode;
     this.CheckRefIntegrity = application.Settings.CheckRefIntegrity;
     this.RegisterLiveSessions();
 }
 public CodeGenerator(DataApplication application, CodeGeneratorOptions options)
 {
     this.Application = application;
     this.Options     = options;
 }