private static EntitiesConfigModel GetEntitiesConfig()
        {
            EntitiesConfigModel model = new EntitiesConfigModel();

            using (var stream = new StreamReader(LibraryDir + @"\Configuration\entitiesconfig.json"))
                model = JsonConvert.DeserializeObject <EntitiesConfigModel>(stream.ReadToEnd());
            return(model);
        }
        public static string GetEntityNamespace(string entityType)
        {
            EntitiesConfigModel config = GetEntitiesConfig();

            return(entityType switch
            {
                "Table" => config.Table.Namespace,
                "BusinessComponent" => config.BusinessComponent.Namespace,
                "Applet" => config.Applet.Namespace,
                "DataBUSFactory" => config.DataBUSFactory.Namespace,
                "BUSUIFactory" => config.BUSUIFactory.Namespace,
                "AppletController" => config.AppletController.Namespace,
                "BusinessComponentController" => config.BusinessComponentController.Namespace,
                "ScreenController" => config.ScreenController.Namespace,
                "Context" => config.Context.Path,
                "Dll" => config.Dll.Path,
                "Migration" => config.Migration.Path,
                _ => config.Table.Namespace,
            });