예제 #1
0
        /// <summary>
        /// Configures the meta data.
        /// </summary>
        public static void ConfigureMetaData()
        {
            MemoryStream ms     = new MemoryStream(OrderResources.OrderSystem);
            StreamReader reader = new StreamReader(ms);

            MetaInstaller.Restore(OrderContext.MetaDataContext, reader.ReadToEnd());
        }
예제 #2
0
        /// <summary>
        /// Retrieve metadata from the meta data engine and store in the MetaInstaller
        /// </summary>
        public static void ConfigureMetaData()
        {
            MemoryStream ms     = new MemoryStream(CatalogResources.CatalogSystem);
            StreamReader reader = new StreamReader(ms);

            MetaInstaller.Restore(CatalogContext.MetaDataContext, reader.ReadToEnd());
            reader.Dispose();
        }