Click here to Skip to main content
12,300,240 members (49,597 online)
Click here to Skip to main content

Stats

57.9K views
858 downloads
59 bookmarked
Posted

Dynamite: High Performace Dynamic Sorting Using Expressions

, 25 Sep 2008 CPOL
Easy-to-use and high performance dynamic sorting of most type of sequences with SQL-like syntax, developed using System.Linq.Expression classes.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="PersonDataSet" targetNamespace="http://tempuri.org/PersonDataSet.xsd" xmlns:mstns="http://tempuri.org/PersonDataSet.xsd" xmlns="http://tempuri.org/PersonDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="PersonDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="PersonDataSet" msprop:Generator_DataSetName="PersonDataSet" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Persons" msprop:Generator_UserTableName="Persons" msprop:Generator_RowDeletedName="PersonsRowDeleted" msprop:Generator_RowChangedName="PersonsRowChanged" msprop:Generator_RowClassName="PersonsRow" msprop:Generator_RowChangingName="PersonsRowChanging" msprop:Generator_RowEvArgName="PersonsRowChangeEvent" msprop:Generator_RowEvHandlerName="PersonsRowChangeEventHandler" msprop:Generator_TableClassName="PersonsDataTable" msprop:Generator_TableVarName="tablePersons" msprop:Generator_RowDeletingName="PersonsRowDeleting" msprop:Generator_TablePropName="Persons">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
              <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:nullValue="_null" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" type="xs:string" minOccurs="0" />
              <xs:element name="BirthDate" msprop:Generator_UserColumnName="BirthDate" msprop:Generator_ColumnVarNameInTable="columnBirthDate" msprop:Generator_ColumnPropNameInRow="BirthDate" msprop:Generator_ColumnPropNameInTable="BirthDateColumn" type="xs:dateTime" />
              <xs:element name="Pets" msprop:Generator_UserColumnName="Pets" msprop:Generator_ColumnPropNameInRow="Pets" msprop:Generator_ColumnVarNameInTable="columnPets" msprop:Generator_ColumnPropNameInTable="PetsColumn" type="xs:int" />
              <xs:element name="MarriedDate" msprop:Generator_UserColumnName="MarriedDate" msprop:Generator_ColumnPropNameInRow="MarriedDate" msprop:Generator_ColumnVarNameInTable="columnMarriedDate" msprop:Generator_ColumnPropNameInTable="MarriedDateColumn" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Persons" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Henrik Jonsson
Software Developer
Sweden Sweden
Henrik Jonsson is a Microsoft Professional Certified Windows Developer (MCPD) that currently works as an IT consultant in Västerås, Sweden.

Henrik has worked in several small and large software development projects in various roles such as architect, developer, CM and tester.

He regularly reads The Code Project articles to keep updated about .NET development and get new ideas. He has contributed with articles presenting some useful libraries for Undo/Redo, Dynamic Linq Sorting and a Silverlight 5 MultiBinding solution.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160525.2 | Last Updated 25 Sep 2008
Article Copyright 2008 by Henrik Jonsson
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid