Esempio n. 1
0
        protected virtual IClassMapper GetClassMapper(Type type, IDapperExtensionConfiguration configuration)
        {
            IClassMapper map = configuration.GetMap(type);

            if (map == null)
            {
                throw new NullReferenceException(string.Format("Map was not found for {0}", type));
            }

            return(map);
        }
Esempio n. 2
0
 public SqlGeneratorImpl(IDapperExtensionConfiguration configuration, DataBaseType dbType)
 {
     Configuration = configuration;
     DbType        = dbType;
 }