DotaNet.Objects 18.16.2

dotnet add package DotaNet.Objects --version 18.16.2
                    
NuGet\Install-Package DotaNet.Objects -Version 18.16.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="DotaNet.Objects" Version="18.16.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotaNet.Objects" Version="18.16.2" />
                    
Directory.Packages.props
<PackageReference Include="DotaNet.Objects" />
                    
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 DotaNet.Objects --version 18.16.2
                    
#r "nuget: DotaNet.Objects, 18.16.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.
#addin nuget:?package=DotaNet.Objects&version=18.16.2
                    
Install DotaNet.Objects as a Cake Addin
#tool nuget:?package=DotaNet.Objects&version=18.16.2
                    
Install DotaNet.Objects as a Cake Tool

DotaNet.Objects

BinaryFile

public class BinaryFile
{
    public BinaryFile(Guid id, string name, byte[] bytes, long length, string contentType) { }

    public Guid Id { get; }

    public string Name { get; }

    public byte[] Bytes { get; private set; }

    public long Length { get; }

    public string ContentType { get; }

    public static async Task<BinaryFile> ReadAsync(string directory, Guid id) { }

    public async Task SaveAsync(string directory) { }
}

BinaryFileExtensions

public static class BinaryFileExtensions
{
    public static async Task<IEnumerable<BinaryFile>> SaveAsync(this IEnumerable<BinaryFile> files, string directory) { }
}

Filter

public record Filter
{
    public string Property { get; set; }

    public string Comparison { get; set; }

    public string Value { get; set; }
}

Filters

public class Filters : List<Filter> { }

Order

public record Order
{
    public bool Ascending { get; set; } = true;

    public string Property { get; set; }
}

Page

public record Page
{
    public int Index { get; set; } = 1;

    public int Size { get; set; }
}

GridParameters

public record GridParameters
{
    public Filters Filters { get; set; }

    public Order Order { get; set; }

    public Page Page { get; set; }
}

Grid

public record Grid<T>
{
    public Grid(IQueryable<T> queryable, GridParameters parameters) { }

    public long Count { get; }

    public IEnumerable<T> List { get; }

    public GridParameters Parameters { get; }
}

GridExtensions

public static class GridExtensions
{
    public static Grid<T> Grid<T>(this IQueryable<T> queryable, GridParameters parameters) { }

    public static Task<Grid<T>> GridAsync<T>(this IQueryable<T> queryable, GridParameters parameters) { }
}
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DotaNet.Objects:

Package Downloads
DotaNet.AspNetCore

DotaNet.AspNetCore

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
18.16.2 284 7 months ago
18.16.0 127 7 months ago