public static void MainMethod(string _inpath, string _outpath, string _defaultNamespace, string templatesFolder) { //Date: 2019. 11. 09. 18:20 if (!Directory.Exists(_outpath + "PersistentMethods")) { Directory.CreateDirectory(_outpath + "PersistentMethods"); } string[] files = Directory.GetFiles(_inpath, "*.xml", SearchOption.TopDirectoryOnly); foreach (var _file in files) { string _filename = Path.GetFileNameWithoutExtension(_file); Console.WriteLine(_filename); Ac4yClass ac4y = DeserialiseMethod.deser(_file); } EntityGenerate.entityGenerateMethods(files, _defaultNamespace, _outpath, templatesFolder); }
//Date 2019 11 09 16:20 #region values #endregion public static void entityGenerateMethods(string[] files, string package, string outputPath, string templatesFolder) { List <Ac4yClass> list = new List <Ac4yClass>(); string[] files2 = files; foreach (var _file in files2) { string _filename = Path.GetFileNameWithoutExtension(_file); list.Add(DeserialiseMethod.deser(_file)); } Generator.contextGenerate("Template", outputPath, list, package, templatesFolder); for (var x = 0; x < files2.Length; x++) { string _filename = Path.GetFileNameWithoutExtension(files2[x]); Generator.generateEntityMethods("TemplateEntityMethodsShort", package, list[x], outputPath, templatesFolder); } }