KullGames_ServerLists_DataAccess 1.0.20241025.953
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
<PackageReference Include="KullGames_ServerLists_DataAccess" Version="1.0.20241025.953" />
paket add KullGames_ServerLists_DataAccess --version 1.0.20241025.953
#r "nuget: KullGames_ServerLists_DataAccess, 1.0.20241025.953"
// 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:
Clone the repository:
git clone https://dev.azure.com/KullGamesRepo/KullGames/_git/KullGames_ServerLists
Navigate to the project directory:
cd KullGames_ServerLists
Restore dependencies and build:
dotnet restore dotnet build
Contributing
Contributions are welcome! Please follow the steps below:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - 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 | 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. |
-
net8.0
- FirebirdSql.EntityFrameworkCore.Firebird (>= 11.0.0)
- Microsoft.EntityFrameworkCore (>= 8.0.10)
- Microsoft.EntityFrameworkCore.Abstractions (>= 8.0.10)
- Microsoft.EntityFrameworkCore.Analyzers (>= 8.0.10)
- Microsoft.EntityFrameworkCore.Cosmos (>= 8.0.10)
- Microsoft.EntityFrameworkCore.InMemory (>= 8.0.10)
- Microsoft.EntityFrameworkCore.Sqlite (>= 8.0.10)
- Microsoft.EntityFrameworkCore.Sqlite.Core (>= 8.0.10)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.10)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.10)
- Pomelo.EntityFrameworkCore.MySql (>= 8.0.2)
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.