Chd.Library.NoSQL 9.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Chd.Library.NoSQL --version 9.0.2                
NuGet\Install-Package Chd.Library.NoSQL -Version 9.0.2                
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="Chd.Library.NoSQL" Version="9.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chd.Library.NoSQL --version 9.0.2                
#r "nuget: Chd.Library.NoSQL, 9.0.2"                
#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.
// Install Chd.Library.NoSQL as a Cake Addin
#addin nuget:?package=Chd.Library.NoSQL&version=9.0.2

// Install Chd.Library.NoSQL as a Cake Tool
#tool nuget:?package=Chd.Library.NoSQL&version=9.0.2                

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 9.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 data 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

See also the list of contributors who participated in this project.

🎉 Acknowledgements

Thank you for using my library.

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. 
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
9.0.5 64 1/30/2025
9.0.4 100 1/1/2025
9.0.3 89 12/29/2024
9.0.2 77 12/29/2024
9.0.1 84 12/29/2024
9.0.0 102 12/25/2024
8.0.7 89 12/23/2024
8.0.6 88 12/23/2024
7.2.8 547 8/9/2023
1.2.8 632 5/3/2023