Giter Club home page Giter Club logo

xpo_how-to-create-and-use-the-joinoperand-using-linq-to-xpo-and-criteria-operators-e1883's Introduction

Files to look at:

How to create and use the JoinOperand using LINQ to XPO and Criteria Operators

There are three approaches of creating the JoinOperand:

By using the constructor.

The JoinOperand has three constructors.The first constructor is parameterless. It can be used if necessary properties are assigned later. These properties are described below in the context of remainder constructors.

The second constructor takes two parameters. joinTypeName - the name of a persistent class that is used to join data. The class name can be specified with the namespace if there are classes with equal names. condition - the CriteriaOperator that is used to compare keys of the collections that are joined. In addition, there can be used any condition that isn't related to keys.

The third constructor has two additional parameters, allowing you to apply the aggregate expression to the result of the join operation. type - the type of the aggregateExpression. This parameter is of the Aggregate type. aggregatedExpression - an expression that is used for calculating values.

By using the CriteriaOperator.Parse method.

The general syntax for creating the JoinOperand is: [<jointypename>][[^.ParentObjectProperty] = [JoinedObjectProperty]]

By using the LINQ to XPO.

The general syntax is the same as the syntax of the Join operation in LINQ:

from e in employees
join em in employees
on e.Oid equals em.ManagerID
into emg
where emg.Count() > 10
select e;
From e In employees _ 
Group Join em In employees _ 
On e.Oid Equals em.ManagerID _ 
Into emg = Group _ 
Where emg.Count() > 10 _ 
Select e

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

xpo_how-to-create-and-use-the-joinoperand-using-linq-to-xpo-and-criteria-operators-e1883's People

Contributors

andreykozhevnikov avatar devexpressexamplebot avatar maksimkarpenko avatar uriahas avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.