public Type GetEntityProxyType(Type baseType, Puzzle.NPersist.Framework.Mapping.IClassMap classMap)
 {
     return(aopEngine.CreateProxyType(baseType));
 }
        public object CreateEntityProxy(Type baseType, Puzzle.NPersist.Framework.Persistence.IObjectFactory objectFactory, Puzzle.NPersist.Framework.Mapping.IClassMap classMap, object[] ctorArgs)
        {
            Type proxyType = aopEngine.CreateProxyType(baseType);

            object[] proxyArgs = aopEngine.AddStateToCtorParams(context, ctorArgs);

            return(context.ObjectFactory.CreateInstance(proxyType, proxyArgs));
        }