view Source/Data/Sql/SqlProvider/ISqlProvider.cs @ 2:79a04c6442bf

file name case fix
author cin
date Fri, 22 Aug 2014 13:41:57 +0400
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; }
	}
}