1234567891011121314151617181920212223242526272829303132333435 |
- 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();
- }
- }
- }
|