public void OnBoot() { // Given the settings have been setup, the identification system can load. XIdentification.Initialize(); if (XNew.Api.Factory is ObjectFactoryApi) { // Change the object factory to look for types that implement Ided_I and set the identifier. XNew.Api.Factory = new IdentificationObjectFactory(); } //XTypal.Initialize(); // We want to enable as many systems as possible to be able to be setup dynamically. A type scan is needed. To identify dynamic components // The type scan needs to ultimately build a semantic model, and this model requires th use of identifiers. This is to enable it to // house runtime types and types that are not yet built in the same model. This was change from the first version. XReflection.Api.Scanning.IO.ScanEntryAssemblyDirectoryForAssemblies(); //// load data before logic to prevent logics from being called without data present. XData.LoadApis(); //XLogic.LoadApis(); //LoadLogicApis(); //if (_.Instance.Associations == null) //{ // _.Instance.Associations = new AssociationApi(); //} //// With the logic and data types identified via the logic and data apis, the typas can be created. //EnsureLogicDataTypes(); //var context = _.CreateContext(); //_.StartOperation(context); //// Phase 2 Type load //XTypal.EnsureTypasAreStored(context); //CreateSqlStatementsForDataTypas(); // nothign was there before }