AbooCore 1.0.0
dotnet add package AbooCore --version 1.0.0
NuGet\Install-Package AbooCore -Version 1.0.0
<PackageReference Include="AbooCore" Version="1.0.0" />
<PackageVersion Include="AbooCore" Version="1.0.0" />
<PackageReference Include="AbooCore" />
paket add AbooCore --version 1.0.0
#r "nuget: AbooCore, 1.0.0"
#:package AbooCore@1.0.0
#addin nuget:?package=AbooCore&version=1.0.0
#tool nuget:?package=AbooCore&version=1.0.0
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 theappsettings.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 | 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
- 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.