Be.Auto.Servicestack.OrmLite.Devexpress 1.0.2

dotnet add package Be.Auto.Servicestack.OrmLite.Devexpress --version 1.0.2
                    
NuGet\Install-Package Be.Auto.Servicestack.OrmLite.Devexpress -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Be.Auto.Servicestack.OrmLite.Devexpress" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Be.Auto.Servicestack.OrmLite.Devexpress" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Be.Auto.Servicestack.OrmLite.Devexpress" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Be.Auto.Servicestack.OrmLite.Devexpress --version 1.0.2
                    
#r "nuget: Be.Auto.Servicestack.OrmLite.Devexpress, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Be.Auto.Servicestack.OrmLite.Devexpress@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Be.Auto.Servicestack.OrmLite.Devexpress&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Be.Auto.Servicestack.OrmLite.Devexpress&version=1.0.2
                    
Install as a Cake Tool

Be.Auto.Servicestack.OrmLite.Devexpress

This project provides a DataSourceLoader class that enables data loading functionality compatible with ServiceStack ORM Lite and DevExtreme components. This package is designed to simplify the process of retrieving data from ORM Lite database connections and performing operations such as pagination, sorting, and filtering in a way that is compatible with DevExtreme components.

Features

  • Data Loading (Read): Responds to data loading requests from DevExtreme components.
  • Filtering: Allows filtering in database queries.
  • Sorting: Supports sorting data.
  • Paging: Supports data pagination.
  • Total Count: Returns the total number of records along with the data page.

Installation

NuGet Package Installation

You can add this package to your project via NuGet:

Install-Package Be.Auto.Servicestack.OrmLite.Devexpress


Usage
Controller Example
The following example demonstrates how to load data in a way compatible with ServiceStack ORM Lite and DevExtreme. In this example, the DataSourceLoaderOrmLite.Load function is used to query PurchaseOrder data.

[Route("api/[controller]")]
public class PurchaseOrderController : Controller
{
    private readonly IDbConnection _dbConnection;

    public PurchaseOrderController(IDbConnection dbConnection)
    {
        _dbConnection = dbConnection;
    }

    [HttpGet]
    public object Get(DataSourceLoadOptions loadOptions)
    {
        // Create ORM Lite query
        var query = _dbConnection.From<PurchaseOrder>();

        // Load data using DataSourceLoaderOrmLite
        var result = DataSourceLoaderOrmLite.Load(loadOptions, _dbConnection, query);
        
        return result;
    }
}

Explanation: DataSourceLoadOptions: This object contains the paging, sorting, and filtering options sent by DevExtreme components.

_dbConnection: Represents the database connection. It is used to connect to the database via ServiceStack ORM Lite through IDbConnection.

DataSourceLoaderOrmLite.Load: This function takes the database query and DataSourceLoadOptions, loads the data, and returns it in a format compatible with DevExtreme.

License This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 476 7/24/2025
1.0.0.3 127 1/22/2025
1.0.0.2 98 1/22/2025
1.0.0.1 120 1/17/2025