Map model with [NoMap] Attribute: model.CopyTo(getModel);
Id long: Long.NewLong(); // Auto sort DateCreated desc
Id in date: datetime.ToDayCount();
Url: string.ToUrl();
Map model with [NoMap] Attribute: AutoMap<ED_Student>.Convert(modelOld, modelNew);
Id long: GenerateId.NewLong(); // Auto sort DateCreated desc
Id in day: datetime.ToDayCount();
Scan virus file upload by Windows Defender:
var defender = new DefenderScanner();
bool defender.CheckFileExtension(fileName) // Check file Extenion
var result = defender.Scan(pathDisk) // Scan file
Resize, crop, add text watermark to Images:
var file = await model.Scale(width, height,true); // model is IFormFile
file.SaveAs("wwwroot/" + pathFile);
The PDF Library .NET Core. Export PDF with table, image, grid... with full format: Horizontal, Vertical, Border, Background Color, Bold...
public IActionResult PDF() {
var model = new PDFDocument(12, PageSize.A4);
model.AddCell(new PDFCell("PDF Library by HT Team") {...
More information
A .NET library for reading and writing Microsoft Office Excel:
NExcel.Export(new NExcelModel {
Headers = headers,
Bodys = results,
FileName = "Export excel"
});
var model = await NExcel.Import(excel);
var value =...
More information
The MediatR library was built to facilitate two primary software architecture patterns: CQRS and the Mediator pattern.
CQRS stands for “Command Query Responsibility Segregation”. As the acronym suggests, it’s all about splitting the responsibility of commands (saves) and queries (reads) into...
More information