示例#1
0
 private QueryContainer[] sameContractSides()
 {
     QueryContainer[] mustQs = new QueryContainer[] {
         new QueryContainerDescriptor <Lib.Data.Smlouva>().Term(t => t.Field("platce.ico").Value(this.Platce.ico)),
     };
     mustQs = mustQs.Concat(this.Prijemce
                            .Where(m => !string.IsNullOrEmpty(m.ico))
                            .Select(m =>
                                    new QueryContainerDescriptor <Lib.Data.Smlouva>().Term(t => t.Field("prijemce.ico").Value(m.ico))
                                    )
                            ).ToArray();
     return(mustQs);
 }