QuickDBS.ObjectDB
0.0.1.6
dotnet add package QuickDBS.ObjectDB --version 0.0.1.6
NuGet\Install-Package QuickDBS.ObjectDB -Version 0.0.1.6
<PackageReference Include="QuickDBS.ObjectDB" Version="0.0.1.6" />
<PackageVersion Include="QuickDBS.ObjectDB" Version="0.0.1.6" />
<PackageReference Include="QuickDBS.ObjectDB" />
paket add QuickDBS.ObjectDB --version 0.0.1.6
#r "nuget: QuickDBS.ObjectDB, 0.0.1.6"
#:package QuickDBS.ObjectDB@0.0.1.6
#addin nuget:?package=QuickDBS.ObjectDB&version=0.0.1.6
#tool nuget:?package=QuickDBS.ObjectDB&version=0.0.1.6
ObjectDB example
The following line establishes an ObjectDB connection to the folder on the file system. Optionally, you can make collections as folders and records as file, if you specify makeCollectionAsFolder: true
.
var db = new QuickDBS.ObjectDB(@"C:\MyObjectDB", makeCollectionAsFolder: false);
We will use the following Person
class example for demonstrating the use of ObjectDB.
public class Person
{
public Int64 Id { get; set; }
public string Name { get; set; }
public double Income { get; set; }
public DateTime DateOfBirth { get; set; }
}
Create a Person record in the Person collection. The result will be the last insert Id of the collection which will be unique.
var id = db.Create<Person>(new Person {
Name = "Rahul",
Income = 5000,
DateOfBirth = new DateTime(2000, 01, 01)
});
Get the person record having Id = 1 from the Person collection.
var person = db.GetById<Person>(1);
person.Name = "Rahul Hadgal";
person.Income = 10000;
Update the income for person selected in the above example, from 5000 to 10000 and change name to Full Name.
var result = db.UpdateById<Person>(person);
Get all records from Person collection
var people = db.GetAll<Person>();
Delete a person by Id = 1 from the Person collection.
var result = db.DeleteById<Person>(1);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- System.Text.Json (>= 6.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on QuickDBS.ObjectDB:
Package | Downloads |
---|---|
Proinfocus.DataCache
A tiny library which caches data either In-Memory or to the specified folder on the disk based on the requirements. |
GitHub repositories
This package is not used by any popular GitHub repositories.