Example #1
0
 /// <summary>
 /// Find all the EF metadata resources.
 /// </summary>
 /// <param name="assembly">The assembly to find the metadata resources in.</param>
 /// <returns>The metadata paths that were found.</returns>
 private static IEnumerable <string> FindMetadataResources(Assembly assembly)
 {
     foreach (string name in assembly.GetManifestResourceNames())
     {
         if (MetadataWorkspaceInfo.IsMetadata(name))
         {
             yield return(string.Format("res://{0}/{1}", assembly.FullName, name));
         }
     }
 }
Example #2
0
        /// <summary>
        /// Find all the EF metadata resources.
        /// </summary>
        /// <param name="assembly">The assembly to find the metadata resources in.</param>
        /// <returns>The metadata paths that were found.</returns>
        private static IEnumerable <string> FindMetadataResources(Assembly assembly)
        {
            List <string> result = new List <string>();

            foreach (string name in assembly.GetManifestResourceNames())
            {
                if (MetadataWorkspaceInfo.IsMetadata(name))
                {
                    result.Add(String.Format(CultureInfo.InvariantCulture, "res://{0}/{1}", assembly.FullName, name));
                }
            }

            return(result);
        }