예제 #1
0
        internal void Initialize(SqlDriverFactory creator, ConnectionInfo creatorConnectionInfo)
        {
            origin = creator;
            originConnectionInfo = creatorConnectionInfo;

            var serverInfoProvider = CreateServerInfoProvider();

            ServerInfo = ServerInfo.Build(serverInfoProvider);

            var typeMapper = CreateTypeMapper();

            typeMapper.Initialize();
            TypeMappings = CreateTypeMappingCollection(typeMapper);

            Translator = CreateTranslator();
            Translator.Initialize();
        }