AbooCore 1.0.0

dotnet add package AbooCore --version 1.0.0
                    
NuGet\Install-Package AbooCore -Version 1.0.0
                    
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="AbooCore" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AbooCore" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="AbooCore" />
                    
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 AbooCore --version 1.0.0
                    
#r "nuget: AbooCore, 1.0.0"
                    
#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 AbooCore@1.0.0
                    
#: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=AbooCore&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=AbooCore&version=1.0.0
                    
Install as a Cake Tool

AbooCore

AbooCore is a simple .NET library that helps generate and write connection strings to appsettings.json for easy configuration management in .NET applications.

Features

  • Connection String Generator: Easily generate a connection string using parameters like server name, database name, username, and password.
  • Automatic Write to appsettings.json: Automatically writes the generated connection string to the appsettings.json file for simplified configuration management.

Installation

To install AbooCore into your .NET project, run the following command:

dotnet add package AbooCore --version 1.0.0

Usage

Once the package is installed, you can use it to configure and write the connection string in your application.

Example Usage:

using AbooCore;

AbooCoreCS aboo = new AbooCoreCS();

// Method 1: Using only Server Name and Database Name
aboo.ConfigureConnection("aumserver", "aumdb");

// Method 2: Using Server Name, Database Name, Username, and Password
aboo.ConfigureConnection("aumserver", "aumdb", "myusername", "mypassword");

This will generate a connection string based on the provided parameters and write it to appsettings.json.

Generated Connection String Format:

  • Method 1 (Server Name + Database Name):

    Server=aumserver; Database=aumdb; TrustServerCertificate=True; Trusted_Connection=True;
    
  • Method 2 (Server Name + Database Name + Username + Password):

    Server=aumserver; Database=aumdb; Username=myusername; Password=mypassword; TrustServerCertificate=True; Trusted_Connection=True;
    

Notes

  • This package currently focuses on generating and saving connection strings to appsettings.json.
  • Future versions will include additional features like automatic dependency installations, DbContext generation, dataset generation, and more.

Contributing

Feel free to fork this repository and submit pull requests. Contributions are welcome!

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

    • No dependencies.

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 117 1/29/2025

AbooCore 1.0.0
New Features:
Connection String Generator: Generates a connection string based on server name, database name, username, and password.
Writes to appsettings.json: Automatically writes the generated connection string to the appsettings.json file for easy access and configuration.
Usage:
Call the ConfigureConnection method to generate a connection string and write it to appsettings.json.
Installation:
To install this package, run:

bash
Copy
Edit
dotnet add package AbooCore --version 1.0.0
Notes:
This version does not include support for other configurations (e.g., logging or DBContext generation), but it sets the foundation for future updates.