MrDHelper 2.1.3

dotnet add package MrDHelper --version 2.1.3
                    
NuGet\Install-Package MrDHelper -Version 2.1.3
                    
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="MrDHelper" Version="2.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MrDHelper" Version="2.1.3" />
                    
Directory.Packages.props
<PackageReference Include="MrDHelper" />
                    
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 MrDHelper --version 2.1.3
                    
#r "nuget: MrDHelper, 2.1.3"
                    
#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.
#:package MrDHelper@2.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MrDHelper&version=2.1.3
                    
Install as a Cake Addin
#tool nuget:?package=MrDHelper&version=2.1.3
                    
Install as a Cake Tool

<div id="top"></div>

Contributors Forks Stargazers Issues MIT License Nuget version Nuget downloads

<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

  1. 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)));
}
  1. Đă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

  1. 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());
});

  1. Ensure schema FTS (sau migrate)
using VietFtsSearch;

await db.Database.MigrateAsync();
await FtsSchema.EnsureFtsTablesAsync(db);

  1. 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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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!

<p align="right">(<a href="#top">back to top</a>)</p>

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Remove: ConnectionStringHelper
Update: README.md for more details in documentation.