|
|
|
@ -1,6 +1,7 @@ |
|
|
|
using ButcherFactory.BO.Utils; |
|
|
|
using Forks.EnterpriseServices.DomainObjects2; |
|
|
|
using Forks.EnterpriseServices.DomainObjects2.DQuery; |
|
|
|
using Forks.EnterpriseServices.SqlDoms; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
@ -20,6 +21,7 @@ namespace ButcherFactory.BO.LocalBL |
|
|
|
foreach (var field in extendFields) |
|
|
|
query.Columns.Add(DQSelectColumn.Field(field)); |
|
|
|
query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID", true)); |
|
|
|
query.Range = SelectRange.Top(range); |
|
|
|
var result = new List<T>(); |
|
|
|
var type = typeof(T); |
|
|
|
using (var session = DmoSession.New()) |
|
|
|
|