示例#1
0
        protected virtual IClassMapper GetClassMapper(Type type, DapperConfiguration configuration)
        {
            IClassMapper map = configuration.GetMap(type);

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

            return(map);
        }