public void Make_Mapenemy(int maparea_id, int mapinfo_no) { string text = Utils.getTableDirMaster(Mst_mapenemy2.tableName) + "mst_mapenemy/"; string path = string.Concat(new string[] { text, Mst_mapenemy2.tableName, "_", maparea_id.ToString(), mapinfo_no.ToString(), ".xml" }); IEnumerable <XElement> enumerable = Utils.Xml_Result_To_Path(path, Mst_mapenemy2.tableName, string.Empty); if (enumerable == null) { return; } this.Mst_mapenemy.Clear(); using (IEnumerator <XElement> enumerator = enumerable.GetEnumerator()) { while (enumerator.MoveNext()) { XElement current = enumerator.get_Current(); Mst_mapenemy2 mst_mapenemy = null; Model_Base.SetMaster <Mst_mapenemy2>(out mst_mapenemy, current); this.Mst_mapenemy.Add(mst_mapenemy.Id, mst_mapenemy); } } }
public void Make_Mapenemy(int maparea_id, int mapinfo_no) { string text = Utils.getTableDirMaster(Mst_mapenemy2.tableName) + "mst_mapenemy/"; string path = text + Mst_mapenemy2.tableName + "_" + maparea_id.ToString() + mapinfo_no.ToString() + ".xml"; IEnumerable <XElement> enumerable = Utils.Xml_Result_To_Path(path, Mst_mapenemy2.tableName, string.Empty); if (enumerable != null) { Mst_mapenemy.Clear(); foreach (XElement item in enumerable) { Mst_mapenemy2 instance = null; Model_Base.SetMaster(out instance, item); Mst_mapenemy.Add(instance.Id, instance); } } }