Ejemplo n.º 1
0
        public void TestCreateDll()
        {
            try
            {
                string sourceLocation = "";
                string targetLocation = "";
                string location       = "";

                ManageAssembly.GetWorkPaths(out sourceLocation, out targetLocation, out location);

                ManageAssembly.CreateAssemblies();

                Assert.IsTrue(File.Exists(Path.Combine(targetLocation, "table1.dll")));
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }
        }
Ejemplo n.º 2
0
        private static void GetDynamicEFAssemblies()
        {
            string sourceLocation = "";
            string targetLocation = "";
            string location       = "";

            ManageAssembly.GetWorkPaths(out sourceLocation, out targetLocation, out location);

            ManageAssembly.CreateAssemblies();

            //New table1 With {.Title = "Ehab"}
            // Add Classes to our domain
            var assemblyNames = ManageAssembly.GetAllDynamicAssemblyNames();

            foreach (var item in assemblyNames)
            {
                //var asm = Assembly.LoadFrom(item);
                AppDomain.CurrentDomain.Load(AssemblyName.GetAssemblyName(item));
            }
        }