Esempio n. 1
0
        public static List <BaseMetaData> GetWhereForeign(IMetaDataProvider metaDataProvider, Type entityType)
        {
            var metaDataList =
                from metaData in metaDataProvider.GetAll()
                where metaData.GetProperties().Any(
                    p => p.ForeignType() != null &&
                    p.ForeignType() == entityType) &&
                metaData.EntityType != entityType
                select metaData;

            return(metaDataList.ToList());
        }