public List<string> GetTableNames() { using (var Context = new MCPEntities()) { FieldInfo[] mytables = Context.GetType().GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); List<string> tbllistname = new List<string>(); foreach (var item in mytables) { tbllistname.Add(item.Name.Split('<', '>')[1]); } return tbllistname; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)