CVSolution.ElasticsearchExtension
1.0.0-pre6
This is a prerelease version of CVSolution.ElasticsearchExtension.
dotnet add package CVSolution.ElasticsearchExtension --version 1.0.0-pre6
NuGet\Install-Package CVSolution.ElasticsearchExtension -Version 1.0.0-pre6
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="CVSolution.ElasticsearchExtension" Version="1.0.0-pre6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CVSolution.ElasticsearchExtension" Version="1.0.0-pre6" />
<PackageReference Include="CVSolution.ElasticsearchExtension" />
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 CVSolution.ElasticsearchExtension --version 1.0.0-pre6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CVSolution.ElasticsearchExtension, 1.0.0-pre6"
#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 CVSolution.ElasticsearchExtension@1.0.0-pre6
#: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=CVSolution.ElasticsearchExtension&version=1.0.0-pre6&prerelease
#tool nuget:?package=CVSolution.ElasticsearchExtension&version=1.0.0-pre6&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CVSolution.ElasticsearchExtension
介绍
Elasticsearch扩展
使用说明
- IOC注入
using CVSolution;
using CVSolution.ElasticsearchExtension;
private AppConfig appConfig;
public void ConfigureServices(IServiceCollection services)
{
appConfig = ConfigTool.Instance.AddJsonFile<AppConfig>("AppConfig", false, true);
services.AddElasticsearch(appConfig.ESConfig);
}
- AppConfig类属性
using CVSolution.ElasticsearchExtension;
public class AppConfig
{
public ESConfig ESConfig { get; set; }
}
- Json配置内容
{
"ESConfig": {
"Urls": [
"http://127.0.0.1:9200/",
"http://127.0.0.2:9200/",
"http://127.0.0.3:9200/",
"http://127.0.0.4:9200/",
"http://127.0.0.5:9200/"
], // ES数据库地址
"ESUser": "", // ES数据库用户名
"ESPwd": "" // ES数据库密码
}
}
- 相关方法(有空在写)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- CVSolution (>= 1.0.0-pre7)
- NEST (>= 7.17.5)
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 |
---|---|---|
1.0.0-pre6 | 98 | 4/19/2024 |
1.0.0-pre5 | 95 | 2/2/2024 |
1.0.0-pre4 | 175 | 12/1/2023 |
1.0.0-pre3 | 95 | 4/16/2024 |
1.0.0-pre2 | 92 | 9/21/2023 |
1.0.0-pre1 | 84 | 4/16/2024 |