当前位置: 首页>>代码示例>>C#>>正文


C# XPCollection.Where方法代码示例

本文整理汇总了C#中XPCollection.Where方法的典型用法代码示例。如果您正苦于以下问题:C# XPCollection.Where方法的具体用法?C# XPCollection.Where怎么用?C# XPCollection.Where使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XPCollection的用法示例。


在下文中一共展示了XPCollection.Where方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SynchronizeTypes

 public void SynchronizeTypes(string connectionString) {
     using (var session = new Session { ConnectionString = connectionString }) {
         using (var types = new XPCollection<XPObjectType>(session)) {
             IEnumerable<XPObjectType> xpObjectTypes = types.Where(objectType => ReflectionHelper.FindType(objectType.TypeName) != null).ToList();
             var sqlMultiDataStoreProxy = new MultiDataStoreProxy(connectionString);
             foreach (var connstring in GetConnectionStrings(sqlMultiDataStoreProxy.DataStoreManager, xpObjectTypes, connectionString)) {
                 if (connstring != connectionString) {
                     SynchronizeTypes(connstring, xpObjectTypes);
                 }
             }
         }
     }
 }
开发者ID:noxe,项目名称:eXpand,代码行数:13,代码来源:TypeSynchronizer.cs

示例2: GetMembers

 public IEnumerable<IExtendedMemberInfo> GetMembers(Session session, Type infoType) {
     IEnumerable<IExtendedMemberInfo> extendedMemberInfos = new XPCollection(session, infoType).Cast<IExtendedMemberInfo>();
     return extendedMemberInfos.Where(info => !MemberExists(info));
 }
开发者ID:aries544,项目名称:eXpand,代码行数:4,代码来源:ExistentTypesMemberCreator.cs

示例3: LoadOpenBalance

        public static List<SubSalesOrderLine> LoadOpenBalance(UnitOfWork uow, SubItem SubItem)
        {
            XPCollection<SubSalesOrderLine> soLines = new XPCollection<SubSalesOrderLine>(uow);
            var SoList = soLines.Where(So => So.Item.ItemNo == SubItem.ItemNo &&
                    So.OrderStatus == SalesOrderLine.SalesOrderStatus.Active)
                    .OrderBy(So => So.NeedDate);

            return SoList.ToList();
        }
开发者ID:kamchung322,项目名称:Namwah,代码行数:9,代码来源:SubSalesOrderLine.cs

示例4: GetAll

        public List<Absence> GetAll(Int64 planningId, DateTime date)
        {
            try
            {
                List<Absence> result = new List<Absence>();

                result = new XPCollection<Absence>(this.Session).Where(x => x.Planning == planningId).ToList();
                result = result.Where(x => x.Date == date).ToList();

                return result;
            }
            catch (Exception exception1)
            {
                Exception innerException = exception1;
                throw new Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
开发者ID:GianiWVL,项目名称:VUYLSTEKE,代码行数:17,代码来源:Absence.cs

示例5: LoadOpenBalance

 public static List<SubPurchOrderLine> LoadOpenBalance(UnitOfWork uow, SubItem SubItem, 
     SubPurchOrderLine.OrderType PoType)
 {
     XPCollection<SubPurchOrderLine> PoLines = new XPCollection<SubPurchOrderLine>(uow);
     var PoList = PoLines.Where(Po => Po.SubItem.ItemNo == SubItem.ItemNo &&
                             Po.OrderStatus == PurchOrderStatus.Active &&
                             Po.PurchOrderLineType == PoType).OrderBy(Po => Po.NeedDate);
     return PoList.ToList();
 }
开发者ID:kamchung322,项目名称:Namwah,代码行数:9,代码来源:SubPurchOrderLine.cs


注:本文中的XPCollection.Where方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。