Chd.Library.NoSQL
8.0.7
See the version list below for details.
dotnet add package Chd.Library.NoSQL --version 8.0.7
NuGet\Install-Package Chd.Library.NoSQL -Version 8.0.7
<PackageReference Include="Chd.Library.NoSQL" Version="8.0.7" />
paket add Chd.Library.NoSQL --version 8.0.7
#r "nuget: Chd.Library.NoSQL, 8.0.7"
// Install Chd.Library.NoSQL as a Cake Addin #addin nuget:?package=Chd.Library.NoSQL&version=8.0.7 // Install Chd.Library.NoSQL as a Cake Tool #tool nuget:?package=Chd.Library.NoSQL&version=8.0.7
NoSql helper library for .Net Core
Chd (cleverly handle difficulty) library helps you cleverly handle difficulty, writing code fastly and do your application stable.
📝 Table of Contents
🧐 About
NoSql databases are a document databases with the scalability and flexibility that you want with the querying and indexing that you need.
🏁 Getting Started
NoSql databases use documents that can contain sub-documents in complex hierarchies making it expressive and flexible.
Prerequisites
You must use .net core 8.0 or higher
🔧 Running the tests
[TestClass]
public class MongoDBTests
{
static MongoDBTests()
{
// ==> app.AddNoSQL(); //In project usings
NoSqlDependenyInjectionExtensions.AddNoSQL(null);
}
[TestMethod]
public void Test()
{
var config = EnvironmentHelper.GetConfiguration();
try
{
ConnectionManager.GetTable<DataContainer>().InsertOne(new DataContainer { Id = 3, Name = "Mehmet" });
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
throw;
}
}
}
class DataContainer
{
public int Id { get; set; }
public string Name { get; set; }
}
Apsettings Configurations
You must add code below in appsettings.json
"NoSQL": {
"Host": "192.168.1.48",
"UserName": "mongoadmin",
"Password": "admin2023*",
"Port": "6005",
"Collection": "testtable",
"Database": "TestDatabase"
}
Test Result
After running test, you can see sample image on MongoDB.
🎈 Usage
You can use "ConnectionManager" class for sending data and reading data from database.
ConnectionManager.GetTable<DataContainer>().InsertOne(new DataContainer { Id = 3, Name = "Mehmet" });
✍️ Authors
- Mehmet Yoldaş - Linkedin
See also the list of contributors who participated in this project.
🎉 Acknowledgements
Thank you for using my library.
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. |
-
net8.0
- Chd.Library.Common (>= 8.0.3)
- MongoDB.Driver (>= 2.20.0)
- Newtonsoft.Json (>= 13.0.3)
- RabbitMQ (>= 3.6.2)
- RabbitMQ.Client (>= 6.8.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.