Nhgdb.EntityFrameworkCore.HGDB
8.0.2
dotnet add package Nhgdb.EntityFrameworkCore.HGDB --version 8.0.2
NuGet\Install-Package Nhgdb.EntityFrameworkCore.HGDB -Version 8.0.2
<PackageReference Include="Nhgdb.EntityFrameworkCore.HGDB" Version="8.0.2" />
<PackageVersion Include="Nhgdb.EntityFrameworkCore.HGDB" Version="8.0.2" />
<PackageReference Include="Nhgdb.EntityFrameworkCore.HGDB" />
paket add Nhgdb.EntityFrameworkCore.HGDB --version 8.0.2
#r "nuget: Nhgdb.EntityFrameworkCore.HGDB, 8.0.2"
#:package Nhgdb.EntityFrameworkCore.HGDB@8.0.2
#addin nuget:?package=Nhgdb.EntityFrameworkCore.HGDB&version=8.0.2
#tool nuget:?package=Nhgdb.EntityFrameworkCore.HGDB&version=8.0.2
Nhgdb Entity Framework Core provider for HGDB
Nhgdb.EntityFrameworkCore.HGDB is the open source EF Core provider for HGDB. It allows you to interact with HGDB via the most widely-used .NET O/RM from Microsoft, and use familiar LINQ syntax to express queries. It's built on top of Nhgdb.
The provider looks and feels just like any other Entity Framework Core provider. Here's a quick sample to get you started:
������־
20251110 - Highgo V45 dotnetcore �������� - �״��ϴ�
await using var ctx = new BlogContext();
await ctx.Database.EnsureDeletedAsync();
await ctx.Database.EnsureCreatedAsync();
// Insert a Blog
ctx.Blogs.Add(new() { Name = "FooBlog" });
await ctx.SaveChangesAsync();
// Query all blogs who's name starts with F
var fBlogs = await ctx.Blogs.Where(b => b.Name.StartsWith("F")).ToListAsync();
public class BlogContext : DbContext
{
public DbSet<Blog> Blogs { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseNhgdb(@"Host=myserver;Username=mylogin;Password=mypass;Database=mydatabase");
}
public class Blog
{
public int Id { get; set; }
public string Name { get; set; }
}
Aside from providing general EF Core support for HGDB, the provider also exposes some HGDB-specific capabilities, allowing you to query JSON, array or range columns, as well as many other advanced features. For more information, see the the Nhgdb site. For information about EF Core in general, see the EF Core website.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. 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. |
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.2)
- Microsoft.EntityFrameworkCore.Abstractions (>= 8.0.2)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.2)
- Nhgdb (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.