Ejemplo n.º 1
0
        public Generator(IPocoGenertor pocoGenerator, ITypeMapper typeMapper)
        {
            if (pocoGenerator == null)
            {
                throw new ArgumentNullException("pocoGenerator");
            }

            this.typeCache = new Dictionary<Type, IGeneratedType>();
            this.typeDescritpionCache = new Dictionary<ITypeDescription, IGeneratedType>();
            this.methodCache = new Dictionary<MethodInfo, IGeneratedType>();
            this.typeMapper = typeMapper;
            this.pocoGenerator = pocoGenerator;

            if (this.typeMapper == null)
            {
                this.typeMapper = new DefaultTypeMapper(this.typeDescritpionCache);
            }
        }
Ejemplo n.º 2
0
        public Generator(IPocoGenertor pocoGenerator, ITypeMapper typeMapper)
        {
            if (pocoGenerator == null)
            {
                throw new ArgumentNullException("pocoGenerator");
            }

            this.typeCache            = new Dictionary <Type, IGeneratedType>();
            this.typeDescritpionCache = new Dictionary <ITypeDescription, IGeneratedType>();
            this.methodCache          = new Dictionary <MethodInfo, IGeneratedType>();
            this.typeMapper           = typeMapper;
            this.pocoGenerator        = pocoGenerator;

            if (this.typeMapper == null)
            {
                this.typeMapper = new DefaultTypeMapper(this.typeDescritpionCache);
            }
        }
Ejemplo n.º 3
0
 public Generator(IPocoGenertor pocoGenerator)
     : this(pocoGenerator, null)
 {
 }
Ejemplo n.º 4
0
 public Generator(IPocoGenertor pocoGenerator)
     : this(pocoGenerator, null)
 {
 }