Example #1
0
        static void Main(string[] args)
        {
            string resource = "DatabaseTest.System.Data.SQLite.dll";

            EmbeddedAssembly.Load(resource, "System.Data.SQLite.dll");
            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);

            BibleDao bd = new BibleDao();
            Bible    a  = new Bible("GYGJ", "창세기", 1, 1);
            Bible    b  = new Bible("GYGJ", "창세기", 1, 10);

            Console.WriteLine(bd.GetVerseCount(a));
        }
Example #2
0
 static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }