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
<PackageReference Include="Be.Auto.Servicestack.OrmLite.Devexpress" Version="1.0.2" />
<PackageVersion Include="Be.Auto.Servicestack.OrmLite.Devexpress" Version="1.0.2" />
<PackageReference Include="Be.Auto.Servicestack.OrmLite.Devexpress" />
paket add Be.Auto.Servicestack.OrmLite.Devexpress --version 1.0.2
#r "nuget: Be.Auto.Servicestack.OrmLite.Devexpress, 1.0.2"
#:package Be.Auto.Servicestack.OrmLite.Devexpress@1.0.2
#addin nuget:?package=Be.Auto.Servicestack.OrmLite.Devexpress&version=1.0.2
#tool nuget:?package=Be.Auto.Servicestack.OrmLite.Devexpress&version=1.0.2
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 | Versions 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. |
-
net8.0
- DevExtreme.AspNet.Data (>= 3.0.0)
- ServiceStack.Ormlite (>= 8.3.0)
- ServiceStack.OrmLite.SqlServer (>= 8.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.