KullGames_ServerLists_DataAccess 1.0.20241025.953

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

// Install KullGames_ServerLists_DataAccess as a Cake Tool
#tool nuget:?package=KullGames_ServerLists_DataAccess&version=1.0.20241025.953                

KullGames ServerLists DataAccess Library

Overview

KullGames.ServerLists.DataAccess is a .NET 8.0 data access library designed for Minecraft server listing, utilizing Entity Framework Core and MySQL. It provides a seamless way to interact with server listing data, perform CRUD operations, and integrate with various server-related functionalities.

Features

  • Entity Framework Core: Supports EF Core for database access.
  • MySQL Integration: Built for MySQL database operations.
  • Minecraft Server Listings: Tailored to manage Minecraft server listings and related data.
  • Extensible: Easily extendable to other Minecraft server operations.
  • NuGet Package: Published as a NuGet package for easy integration.

Requirements

  • .NET 8.0 SDK
  • MySQL 8.0+
  • Visual Studio 2022 or higher (optional for development)

Installation

Install the NuGet package in your project:

dotnet add package KullGames.ServerLists.DataAccess --version <version>

Or add the following to your .csproj file:

<PackageReference Include="KullGames.ServerLists.DataAccess" Version="<version>" />

Usage

Setting up the Context

using KullGames.ServerLists.DataAccess;
using Microsoft.EntityFrameworkCore;

public class ServerListContext : DbContext
{
    public DbSet<Server> Servers { get; set; }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        optionsBuilder.UseMySql("<your-connection-string>", 
            ServerVersion.AutoDetect("<your-connection-string>"));
    }
}

Sample Query

using (var context = new ServerListContext())
{
    var servers = context.Servers.ToList();
    foreach (var server in servers)
    {
        Console.WriteLine($"Server Name: {server.Name}");
    }
}

Project Structure

  • KullGames.ServerLists.DataAccess: Main library for accessing server data.
  • Models: Contains all the data models, including server details and associated metadata.

Building the Project

To build the project locally, follow these steps:

  1. Clone the repository:

    git clone https://dev.azure.com/KullGamesRepo/KullGames/_git/KullGames_ServerLists
    
  2. Navigate to the project directory:

    cd KullGames_ServerLists
    
  3. Restore dependencies and build:

    dotnet restore
    dotnet build
    

Contributing

Contributions are welcome! Please follow the steps below:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Create a pull request.

License

This project is licensed under the CC BY-NC 4.0 License - see the LICENSE file for full details, below is a snippet of some key points.

You are free to:

- **Share**: Copy and redistribute the material in any medium or format.
- **Adapt**: Remix, transform, and build upon the material.

Under the following terms:

- **Attribution**: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- **NonCommercial**: You may not use the material for commercial purposes.

Contact

For questions or support, please visit KullGames or open an issue in the repository.


This README provides a detailed overview of the project, setup instructions, and usage examples. Let me know if you'd like to adjust any sections!
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on KullGames_ServerLists_DataAccess:

Package Downloads
KullGames_ServerLists_DataAccessClient

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.20241028.964 72 10/28/2024
1.0.20241025.953 78 10/25/2024

Initial release.