MagnusMinds.Utility
7.0.12
See the version list below for details.
dotnet add package MagnusMinds.Utility --version 7.0.12
NuGet\Install-Package MagnusMinds.Utility -Version 7.0.12
<PackageReference Include="MagnusMinds.Utility" Version="7.0.12" />
paket add MagnusMinds.Utility --version 7.0.12
#r "nuget: MagnusMinds.Utility, 7.0.12"
// Install MagnusMinds.Utility as a Cake Addin #addin nuget:?package=MagnusMinds.Utility&version=7.0.12 // Install MagnusMinds.Utility as a Cake Tool #tool nuget:?package=MagnusMinds.Utility&version=7.0.12
This package is useful for the business logic to more secure and standardise the code. It's useful to test how our controller behaves based on the validity of the inputs and validate its response based on the result of the operation it performs.
APIDefaultResponseModel
Return different-different types of response
CommonHelper
Checking email
IPAddress validations
Return random Integer/Digit
Checking strings are null or empty
Compares two arrays
Encryption
Create Encrypt and decrypt to your string or JSON
EnumExtention
Convert List to Oject
HttpRequestExtensions
Provides extension methods
JsonSerializeDeserializer
Convert JSON String to Object and Object to JSON
Session Extensions
Extensions of Session
WebHelper
Gets whether the request is made with AJAX
Get IP address from HTTP context
Check whether current HTTP request is available
XMLSerializeDeSerialize
Serializes an object
De-serializes an XML file into an object list
Serializes and Deserializes datetime
Encode and decode your attributes
EmailSender
Send an email by sending email Configuration
You need to Just add configuration in your appSetting.json file
"EmailConfiguration": {
"From": "YOUR_EMAIL_ADDRESS",
"SmtpServer": "smtp.gmail.com",
"Port": PORT_NO,
"Username": "YOUR_EMAIL_ADDRESS",
"Password": "YOUR_EMAIL_PASSWORD"
}
In your starup.cs file
services.ConfigureEmail(Configuration.GetSection("EmailConfiguration").Get<EmailConfiguration>());
In your controller file
var message = new MimeMessage();
message.To.Add(new MailboxAddress(firstname,email));
message.Body = new TextPart("Plain") { Text = "Hello" };
try
{
await _emailSender.SendEmailAsync(message);
}
catch (Exception ex)
{
throw ex;
}
Dapper
Create CRUD Operation with Database using Connection String
You need to add Connection String in your appSetting.json file
"ConnectionStrings": {
"ServerConnectionString": "YOUR_CONNECTION_STRING"
}
In your starup.cs file
services.ConfigureDapper(Configuration.GetSection("ConnectionStrings").Get<ConnectionStrings>());
In your controller file
private readonly IRepositoryGeneric<Employees> _employeesRepo;
public EmployeesController(IRepositoryGeneric<Employees> employeesRepo)
{
_employeesRepo = employeesRepo;
}
var getAllEmployee=_employeesRepo.GetAllAsync();
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net7.0
- MailKit (>= 4.3.0)
- Microsoft.AspNetCore.Mvc.ViewFeatures (>= 2.2.0)
- MimeKit (>= 4.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.
Version | Downloads | Last updated |
---|---|---|
9.0.13 | 44 | 11/13/2024 |
8.0.12 | 3,262 | 1/17/2024 |
7.0.12 | 120 | 1/17/2024 |
6.0.12 | 127 | 1/17/2024 |
6.0.11 | 2,552 | 6/26/2023 |
6.0.10 | 1,034 | 3/29/2023 |
6.0.8 | 219 | 3/16/2023 |
5.0.12 | 110 | 1/17/2024 |
5.0.11 | 146 | 6/26/2023 |
5.0.10 | 230 | 3/29/2023 |
5.0.8 | 226 | 3/16/2023 |
5.0.7 | 345 | 12/30/2022 |
5.0.6 | 942 | 4/29/2022 |
5.0.5 | 510 | 3/29/2022 |
5.0.3 | 568 | 2/25/2022 |
5.0.2 | 525 | 2/18/2022 |
5.0.1 | 583 | 2/4/2022 |
5.0.0 | 574 | 2/3/2022 |
3.1.12 | 113 | 1/17/2024 |
3.1.11 | 158 | 6/26/2023 |
3.1.10 | 195 | 3/29/2023 |
3.1.8 | 203 | 3/16/2023 |
3.1.7 | 265 | 12/30/2022 |
3.1.6 | 473 | 4/29/2022 |
3.1.4 | 526 | 3/29/2022 |
3.1.3 | 542 | 2/25/2022 |
3.1.2 | 548 | 2/24/2022 |
3.1.1 | 555 | 2/4/2022 |
3.1.0 | 562 | 2/3/2022 |
3.0.12 | 120 | 1/17/2024 |
3.0.11 | 146 | 6/26/2023 |
3.0.10 | 191 | 3/29/2023 |
3.0.8 | 228 | 3/16/2023 |
3.0.7 | 295 | 12/30/2022 |
3.0.6 | 476 | 4/29/2022 |
3.0.4 | 546 | 3/29/2022 |
3.0.3 | 526 | 2/25/2022 |
3.0.2 | 568 | 2/24/2022 |
3.0.1 | 572 | 2/4/2022 |
3.0.0 | 557 | 2/4/2022 |
2.1.12 | 113 | 1/17/2024 |
2.1.11 | 173 | 6/26/2023 |
2.1.10 | 196 | 3/29/2023 |
2.1.8 | 210 | 3/16/2023 |
2.1.7 | 271 | 12/30/2022 |
2.1.6 | 478 | 4/29/2022 |
2.1.5 | 508 | 3/29/2022 |
2.1.4 | 505 | 2/25/2022 |
2.1.3 | 519 | 2/24/2022 |
2.1.2 | 552 | 2/4/2022 |
2.1.0 | 580 | 2/4/2022 |
2.0.12 | 117 | 1/17/2024 |
2.0.11 | 131 | 6/26/2023 |
2.0.10 | 193 | 3/29/2023 |
2.0.8 | 207 | 3/16/2023 |
2.0.7 | 292 | 12/30/2022 |
2.0.6 | 410 | 4/29/2022 |
2.0.4 | 402 | 3/29/2022 |
2.0.3 | 417 | 2/25/2022 |
2.0.2 | 414 | 2/24/2022 |
2.0.1 | 432 | 2/4/2022 |
2.0.0 | 427 | 2/4/2022 |