csharp #xpo查询
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp #xpo查询相关的知识,希望对你有一定的参考价值。
XPCollection<Shift> xpc = new XPCollection<Shift>(uow,
CriteriaOperator.Parse("ShiftEndTime<? && UserLocation.Code=? && ShiftStart>? && Closed", ShiftEndTime, UserLocation.Code, ShiftEnd),
new SortProperty("ShiftEndTime", DevExpress.Xpo.DB.SortingDirection.Descending)) { TopReturnedObjects = 1 };
Shift obj = xpc.Count > 0 ? xpc[0] : null;
//------------------------------------------------------------
CriteriaOperator criteria = CriteriaOperator.Parse("ToStr([NRKLIENTA.STATUSKLIENTA]) = 'A' And [NRKLIENTA.Fakturies][] And [NRKLIENTA.Fakturies][ToStr([FIRMA]) = 'T'].Count() <= 36 And [NRKLIENTA.Fakturies][ToStr([FIRMA]) = 'U'].Count() <= 36 And [ILOSCDNI] > 4 And [DOZAPLATY] > 0.0m And [OK_FAKTURA] = False");
XPCollection<Faktury> karty = new XPCollection<Faktury>(((XPObjectSpace)objectSpace).Session, criteria);
//-----------------------------------------------------------------
_filter = XPQuery<Faktury>.TransformExpression(unitOfWork,
Faktury => Faktury.MailZPotwierdzeniemEFaktury == null &&
Faktury.NRKLIENTA.NUMERKLIENTA == nrklienta &&
Faktury.AUTOSTRADA);
//-------------------------------------------------------------------------------
XPQuery<SSECUser> doradca = session.Query<SSECUser>();
SSECUser rec = doradca.FirstOrDefault(o => o.NO == handlowiec);
以上是关于csharp #xpo查询的主要内容,如果未能解决你的问题,请参考以下文章
csharp #xaf kaskadoweodwiezanie parent objectSpace #xpo
csharp #XPO #TXT导入danych z pliku
csharp #XAF #XPO如何添加一个Action,它将在单独的ListView中显示已过滤的详细信息集合
How to: Use XPO Upcasting in XAF 如何:在 XAF 中使用 XPO 强制转换
XPO - Web API and OData V4 支持
用xpo实现dc技术的关键点-XPO是如何处理接口类型与真实类型的对应关系的