using Ant.Core.Visitors; using Ant.Infrastructure; using Ant.Query; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; namespace Ant.Oracle { class DbContextServiceProvider : IDbContextServiceProvider { bool _convertToUppercase; public DbContextServiceProvider(bool convertToUppercase) { this._convertToUppercase = convertToUppercase; } public IDbExpressionTranslator CreateDbExpressionTranslator() { if (_convertToUppercase == true) { return DbExpressionTranslator_ConvertToUppercase.Instance; } else { return DbExpressionTranslator.Instance; } throw new NotSupportedException(); } } }