Esempio n. 1
0
        private static IEnumerable <string> GetIndexs()
        {
            DomainObject.CheckInitialized();

            List <string> tables = new List <string>();

            foreach (var objectType in DomainObject.TypeIndex)
            {
                if (DomainObject.IsEmpty(objectType))
                {
                    continue;
                }
                var fileds = GetObjectFields(objectType, false);
                tables.Add(objectType.Name);
                tables.AddRange(DataTable.GetRelatedNames(objectType, fileds));
            }
            return(tables.Distinct());
        }