コード例 #1
0
ファイル: SqlDriver.cs プロジェクト: lanicon/dataobjects-net
        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();
        }