MagicDatabase 2.5.1

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

Warning, this is a database designed for small tables, or in any case for applications without the need for large old records. Every operation goes through the static SpellBook class. The entities that the db uses must extend the Trick interface, which makes their primary key uniform with an unsigned long. Furthermore, at startup you must set the DatbaseName with the InitiationToArcane command, which together chooses other functions, such as logs, data position and the possibility of formatting the database in runtime. Although it is designed to have little data, the db saves a record every day it is used, allowing you to track old data deleted later.

<<< Bonds >>> The database also provides bonds between entities of three types: mystics, evocations and twins. Mystics are one-to-many bonds, nullable or not, and allow you to throw exceptions if the many are created without a one, or the one wants to be deleted when there are many associated with it. Summons work the same way, but with two differences: many must necessarily have a link to one, so their field linked to the id of one cannot be nullable. Second, when one is deleted, all the summons associated with it are deleted in a cascade. Finally, twins are a one-to-one link. Nullable on one side or both. If it is linked on one side it is linked on both, allowing for quick exchanges of twins. If there is a non-nullable side, it throws an exception in any case you try to make it stay alone. To bind objects dynamically, instantiate, together with the bindings to decorators, also Scrolls of the bound type.

<<< Jobs >>> The database allows you to set up parallel processes called spells. Spells can be cast and uncast, defining the time interval between one casting and another. Spells have a trigger tied to a type of object and every time an object hits it, an action starts with that object as input. By default MagicDatabase has some deletion spells, called DeathSpell, to delete objects when they meet a certain condition.

<<< Transaction >>> Transactions are done with TimePortals. Using the NET keyword "using", you can create a block in which to do safe operations, which will be canceled in case of error. Remember to use AcceptChanges to apply the changes at the end of the block.

<<< Index >>> A simple way to maintain a specific uniqueness constraint between objects of the same type.

<<< Artifact >>> An extension of the Trick interface. Artifacts are objects that allow you to save, load and delete db elements directly by acting on them, simplifying their use.

To report bugs or ask questions contact marvin.sincini@studenti.unicam.it An example of the use of the MagicDatabase can be found at the following link: https://github.com/Sassas98/DataServiceExample

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 (1)

Showing the top 1 NuGet packages that depend on MagicDatabase:

Package Downloads
MagicAuthentication

MagicAuthentication is a easy tool to improve an authentication fast and easy on your software. Use MagicDatabase to store your information and every account is global into the pc. Then you can use it into many diffent softare, also changing or adding che permission of the roles.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.1 87 2/24/2026
2.5.0 98 2/22/2026
2.4.0 95 2/22/2026
2.3.2 237 9/27/2024
2.3.1 168 9/24/2024
2.3.0 158 9/23/2024
2.2.0 149 9/20/2024
2.1.4 129 9/20/2024
2.1.3 161 9/19/2024
2.1.2 170 9/19/2024
2.1.1 154 9/19/2024
2.1.0 173 9/18/2024
2.0.1 212 9/15/2024
2.0.0 177 9/14/2024
1.1.2 203 9/11/2024 1.1.2 is deprecated because it is no longer maintained and has critical bugs.
1.1.1 181 9/11/2024 1.1.1 is deprecated because it has critical bugs.
1.1.0 184 9/11/2024 1.1.0 is deprecated because it has critical bugs.
1.0.9 186 9/11/2024 1.0.9 is deprecated because it has critical bugs.
1.0.8 185 9/11/2024 1.0.8 is deprecated because it has critical bugs.
1.0.7 181 9/11/2024 1.0.7 is deprecated because it has critical bugs.
Loading failed

Read and writing more stable. New setting for daily backup.