Mercurial > pub > bltoolkit
diff Source/Data/Linq/Builder/IBuildContext.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Source/Data/Linq/Builder/IBuildContext.cs Thu Mar 27 21:46:09 2014 +0400 @@ -0,0 +1,36 @@ +using System; +using System.Linq.Expressions; + +#if DEBUG +#pragma warning disable 3010 +#endif + +namespace BLToolkit.Data.Linq.Builder +{ + using Data.Sql; + + public interface IBuildContext + { +#if DEBUG +// ReSharper disable InconsistentNaming + [CLSCompliant(false)] + string _sqlQueryText { get; } +// ReSharper restore InconsistentNaming +#endif + + ExpressionBuilder Builder { get; } + Expression Expression { get; } + SqlQuery SqlQuery { get; set; } + IBuildContext Parent { get; set; } + + void BuildQuery<T> (Query<T> query, ParameterExpression queryParameter); + Expression BuildExpression (Expression expression, int level); + SqlInfo[] ConvertToSql (Expression expression, int level, ConvertFlags flags); + SqlInfo[] ConvertToIndex (Expression expression, int level, ConvertFlags flags); + IsExpressionResult IsExpression (Expression expression, int level, RequestFor requestFlag); + IBuildContext GetContext (Expression expression, int level, BuildInfo buildInfo); + int ConvertToParentIndex(int index, IBuildContext context); + void SetAlias (string alias); + ISqlExpression GetSubQuery (IBuildContext context); + } +}