public static Type GetClrType(this IEdmType etype) { return(AppDomain.CurrentDomain.GetAssemblies().Where(a => !a.IsDynamic).SelectMany(a => a.ExportedTypes).Where(t => !t.IsAbstract).FirstOrDefault(t => t.FullName == etype.ToString())); }