The Apache.Ibatis.DataMapper.DefaultMapperFactory does not implement the IMapperFactory.GetMapper<TInterface>();
so the only way AFAIK to get the IDataMapper is to use a type cast as: IMapperFactory mapperFactory = configurationEngine.BuildMapperFactory(); IDataMapper dataMapper = ((IDataMapperAccessor)mapperFactory).DataMapper; //since GetInterface<T> has not been implemented. Any one have idea about what the GetInterface<T> intend to be?