12345678910111213141516171819202122232425 |
-
- namespace Ant.Query.QueryState
- {
- class GeneralQueryState : QueryStateBase, IQueryState
- {
- public GeneralQueryState(ResultElement resultElement)
- : base(resultElement)
- {
- }
- public override FromQueryResult ToFromQueryResult()
- {
- if (this.Result.Condition == null)
- {
- FromQueryResult result = new FromQueryResult();
- result.FromTable = this.Result.FromTable;
- result.MappingObjectExpression = this.Result.MappingObjectExpression;
- return result;
- }
- return base.ToFromQueryResult();
- }
- }
- }
|