Esempio n. 1
0
        public Type GetType(IMetaDataProvider provider, string entityName)
        {
            lock (this)
            {
                Type type;

                if (m_entity_name_cache.TryGetValue(entityName, out type))
                {
                    return(type);
                }

                type = m_code_builder.Build(provider.GetEntity(entityName));

                m_entity_name_cache.Add(entityName, type);
                return(type);
            }
        }
Esempio n. 2
0
 public object GetMetaData(string entityType)
 {
     return(new DtoEntity(m_meta_data_provider.GetEntity(entityType, false)));
 }