MrDHelper 2.1.3
dotnet add package MrDHelper --version 2.1.3
NuGet\Install-Package MrDHelper -Version 2.1.3
<PackageReference Include="MrDHelper" Version="2.1.3" />
<PackageVersion Include="MrDHelper" Version="2.1.3" />
<PackageReference Include="MrDHelper" />
paket add MrDHelper --version 2.1.3
#r "nuget: MrDHelper, 2.1.3"
#:package MrDHelper@2.1.3
#addin nuget:?package=MrDHelper&version=2.1.3
#tool nuget:?package=MrDHelper&version=2.1.3
<div id="top"></div>
<br /> <div align="center"> <a href="https://github.com/dattiphu2022/MrDHelper"> <img src="Images/logo.jpg" alt="Logo" width="80" height="80"> </a>
<h3 align="center">Mrd common use helper</h3> </div>
<details>
<summary>Table of Contents</summary>
<ol>
<li>
<a href="#about-the-project">About The Project</a>
</li>
<li><a href="#usage">Usage</a></li>
<li><a href="#roadmap">Roadmap</a></li>
<li><a href="#contributing">Contributing</a></li>
<li><a href="#license">License</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#acknowledgments">Acknowledgments</a></li>
</ol>
</details>
About The Project
This project is providing "extension methods" that are usually used in short way.
New in 2.0.5 + 2.0.6 + 2.0.7
Add EfSqliteFts5
- Kế thừa
using VietFtsSearch;
public sealed class DonVi : AuditableBase, IFtsIndexed, IHasGuidId
{
public string PhienHieu { get; set; } = string.Empty;
public string TenDayDu { get; set; } = string.Empty;
public string? TenVietTat { get; set; }
public string BuildFtsAllText()
=> string.Join(" | ", new[] { PhienHieu, TenDayDu, TenVietTat }
.Where(x => !string.IsNullOrWhiteSpace(x)));
}
- Đăng ký spec 1 lần khi app khởi động Ví dụ trong Program.cs (hoặc nơi cấu hình DI):
using VietFtsSearch;
FtsRegistry.Register<DonVi>(mainTable: "DonVis", ftsTable: "DonVi_fts", idColumn: "Id");
// sau này thêm entity khác => thêm 1 dòng Register
- Gắn interceptor vào DbContextOptions
using VietFtsSearch;
using Microsoft.EntityFrameworkCore;
services.AddDbContext<AppDbContext>(opt =>
{
opt.UseSqlite("Data Source=./applicationdatabase.db;");
opt.AddInterceptors(new SqliteFtsSaveChangesInterceptor());
});
- Ensure schema FTS (sau migrate)
using VietFtsSearch;
await db.Database.MigrateAsync();
await FtsSchema.EnsureFtsTablesAsync(db);
- Search
using VietFtsSearch;
// FtsSearchOption.DefaultOrder + FtsSearchOption.Include
var search = new FtsSearchService(db);
var pagedResult = await search.SearchAsync<DonVi>(SearchQuery, FtsSearchOption, CancelationToken);
Roadmap
- Add Common functions.
- Add more functions.
See the open issues for a full list of proposed features (and known issues).
<p align="right">(<a href="#top">back to top</a>)</p>
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
<p align="right">(<a href="#top">back to top</a>)</p>
License
Distributed under the MIT License. See LICENSE.txt for more information.
<p align="right">(<a href="#top">back to top</a>)</p>
Contact
Nguyễn Quốc Đạt - @NguyenQuocĐat1989
Project Link: https://github.com/dattiphu2022/MrDHelper
<p align="right">(<a href="#top">back to top</a>)</p>
Acknowledgments
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!
- Choose an Open Source License
- GitHub Emoji Cheat Sheet
- Malven's Flexbox Cheatsheet
- Malven's Grid Cheatsheet
- Img Shields
- GitHub Pages
- Font Awesome
- React Icons
<p align="right">(<a href="#top">back to top</a>)</p>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- MailKit (>= 4.15.0)
- Microsoft.AspNetCore.Identity (>= 2.3.9)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 9.0.13)
- Microsoft.EntityFrameworkCore (>= 9.0.13)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.13)
- Microsoft.EntityFrameworkCore.Sqlite (>= 9.0.13)
- MudBlazor (>= 8.15.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Text.Json (>= 9.0.13)
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 |
|---|---|---|
| 2.1.3 | 28 | 3/3/2026 |
| 2.1.2 | 50 | 3/2/2026 |
| 2.1.1 | 93 | 2/8/2026 |
| 2.1.0 | 96 | 1/31/2026 |
| 2.0.9 | 108 | 1/25/2026 |
| 2.0.8 | 104 | 1/19/2026 |
| 2.0.7 | 98 | 1/18/2026 |
| 2.0.6 | 100 | 1/18/2026 |
| 2.0.5 | 106 | 1/18/2026 |
| 2.0.4 | 105 | 1/18/2026 |
| 2.0.3 | 281 | 11/14/2025 |
| 2.0.2 | 317 | 11/13/2025 |
| 2.0.1 | 297 | 11/13/2025 |
| 1.1.2 | 307 | 11/13/2025 |
| 1.1.1 | 464 | 3/27/2023 |
| 1.1.0 | 342 | 3/27/2023 |
| 1.0.9 | 555 | 7/20/2022 |
| 1.0.8 | 544 | 7/19/2022 |
| 1.0.7 | 577 | 7/15/2022 |
| 1.0.6 | 567 | 7/13/2022 |
Remove: ConnectionStringHelper
Update: README.md for more details in documentation.