Bat.AspNetCore
7.0.2
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Bat.AspNetCore --version 7.0.2
NuGet\Install-Package Bat.AspNetCore -Version 7.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="Bat.AspNetCore" Version="7.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bat.AspNetCore --version 7.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Bat.AspNetCore, 7.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.
// Install Bat.AspNetCore as a Cake Addin #addin nuget:?package=Bat.AspNetCore&version=7.0.2 // Install Bat.AspNetCore as a Cake Tool #tool nuget:?package=Bat.AspNetCore&version=7.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
For use Bat.Tools just do it :
1- Install Bat.Tools on your project
2- Use it in bussiness logic for example :
public class BaseService : IBaseService
{
public void UseBatToolsSample()
{
//Excel extention methods
var userList = await _appUow.UserRepo
.Include(x => x.Families)
.Select(x => new { x.UserId, x.Name })
.ToListAsync();
var excelByteArray = userList.ToExcel(sheetName: "UserReport");
using var package = new ExcelPackage("files/UserReport.xlsx")
var data = package.Workbook.Worksheets["UserReport"]
.Extract<RowDataWithColumnBeingRow>()
.WithProperty(p => p.UserId, "B")
.WithProperty(p => p.Name, "C")
// Here, the collection property is defined using the "WithCollectionProperty" method.
// The following parameter is the expression indicating the property of "ColumnData"
// that will be used to receive the header data followed by an integer indicating the row
// that contains the header.
// The last expression indicates the other "ColumnData" property, this one will receive
// the row data. The two last strings are the start and end column from where
// this data will be extracted.
.WithCollectionProperty(p => p.Families,
item => item.FirstName, 1,
item => item.LastName, "E", "S")
.GetData(2, 10)
.ToList();
var base64ImageString = "569821".GetCaptchaImage();
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- Bat.Core (>= 1.1.8)
- Bat.Http (>= 1.1.4)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 3.1.16)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 3.1.16)
- Swashbuckle.AspNetCore (>= 6.1.4)
-
net5.0
- Bat.Core (>= 1.1.8)
- Bat.Http (>= 1.1.4)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 5.0.13)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 5.0.13)
- Swashbuckle.AspNetCore (>= 6.1.4)
-
net6.0
- Bat.Core (>= 6.0.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 6.0.3)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 6.0.3)
- Swashbuckle.AspNetCore (>= 6.3.0)
-
net7.0
- Bat.Core (>= 7.0.2)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 7.0.2)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 7.0.2)
- Swashbuckle.AspNetCore (>= 6.5.0)
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 |
---|---|---|
8.0.1 | 174 | 1/22/2024 |
8.0.0 | 216 | 12/1/2023 |
7.0.3 | 327 | 3/1/2023 |
7.0.2 | 308 | 2/4/2023 |
7.0.0 | 368 | 12/6/2022 |
6.0.22 | 200 | 8/19/2023 |
6.0.21 | 162 | 8/19/2023 |
6.0.1 | 690 | 3/27/2022 |
1.1.6 | 448 | 12/26/2021 |
1.1.5 | 590 | 7/12/2021 |
1.1.4 | 522 | 4/8/2021 |
1.1.3 | 463 | 4/8/2021 |
1.1.2 | 461 | 4/3/2021 |
1.1.1 | 507 | 4/3/2021 |
1.1.0 | 484 | 3/26/2021 |
1.0.7 | 449 | 2/4/2021 |
1.0.4 | 612 | 10/19/2020 |
- Upgrade Package To net 7.0.2
- Add new File extension methods for read and write to files to host