view Source/Data/Sql/SqlProvider/ISqlProvider.cs @ 8:a34cfdde80d6

removed strong signing added FrameworkPathOverride for linux builds
author cin
date Wed, 29 Nov 2017 12:43:52 +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; }
	}
}