Exemplo n.º 1
0
        public EntityProxy()
        {
            ProxyGeneratorBuilder proxyGeneratorBuilder = new ProxyGeneratorBuilder();
            IProxyGenerator       proxyGenerator        = proxyGeneratorBuilder.Build();

            SampleInterface sampleInterface = proxyGenerator.CreateInterfaceProxy <SampleInterface, SampleClass>();

            Console.WriteLine(sampleInterface);
            sampleInterface.Foo();

            Console.ReadKey();

            System.Data.IDbConnection con = null;
            //proxyGenerator.CreateClassProxy();
        }
Exemplo n.º 2
0
 public void TestAop()
 {
     sampleInterface.Foo();
 }