Mercurial > pub > bltoolkit
view Source/Data/Sql/SqlProvider/ISqlProvider.cs @ 9:1e85f66cf767 default tip
update bltoolkit
author | nickolay |
---|---|
date | Thu, 05 Apr 2018 20:53:26 +0300 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
using System; using System.Linq.Expressions; using System.Reflection; using System.Text; namespace BLToolkit.Data.Sql.SqlProvider { using DataProvider; public interface ISqlProvider { int CommandCount (SqlQuery sqlQuery); int BuildSql (int commandNumber, SqlQuery sqlQuery, StringBuilder sb, int indent, int nesting, bool skipAlias); ISqlExpression ConvertExpression (ISqlExpression expression); ISqlPredicate ConvertPredicate (ISqlPredicate predicate); SqlQuery Finalize (SqlQuery sqlQuery); StringBuilder BuildTableName (StringBuilder sb, string database, string owner, string table); object Convert (object value, ConvertType convertType); LambdaExpression ConvertMember (MemberInfo mi); ISqlExpression GetIdentityExpression(SqlTable table, SqlField identityField, bool forReturning); string Name { get; } SqlQuery SqlQuery { get; set; } bool SkipAcceptsParameter { get; } bool TakeAcceptsParameter { get; } bool IsSkipSupported { get; } bool IsTakeSupported { get; } bool IsSubQueryTakeSupported { get; } bool IsSubQueryColumnSupported { get; } bool IsCountSubQuerySupported { get; } bool IsIdentityParameterRequired { get; } bool IsApplyJoinSupported { get; } bool IsInsertOrUpdateSupported { get; } bool CanCombineParameters { get; } } }