Object_Store 1.0.1
dotnet add package Object_Store --version 1.0.1
NuGet\Install-Package Object_Store -Version 1.0.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="Object_Store" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Object_Store --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Object_Store, 1.0.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.
// Install Object_Store as a Cake Addin
#addin nuget:?package=Object_Store&version=1.0.1
// Install Object_Store as a Cake Tool
#tool nuget:?package=Object_Store&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Object Store
What you will find in this package
A simple and small component to
- Create one local secured database file.
- Manipulate data into the data file directly.
How to install and use this framework
- Install this package
- Use the object store :
internal class Program
{
/* For these small examples, a simple data model of two properties of type string is used.
* It is recommended to use a single indexing field in the model to be used for better
* possibility of using the component.
*/
static void Main(string[] args)
{
//Create or connect to the secure database file.
IOStore store = OStore.Connect(@"E:\temp\sample.store");
//Get or create class-based entity.
IEntity<DataSample> dataSample = store.GetEntity<DataSample>();
//Select data with query.
ICollection<DataSample> dataSamples = dataSample.Select(x => x.Name == "FooBar");
//Add data to the data file.
DataSample newDataSample = new DataSample()
{
Name = "FooBar_2",
Description = "This a new FooBar"
};
dataSample.Add(newDataSample);
//Select and change data.
DataSample toChange = dataSample.Select(x => x.Name == "FooBar_2").FirstOrDefault();
if (toChange != null)
{
toChange.Name = "BarFoo";
dataSample.Update(toChange, x => x.Name == "FooBar_2");
}
//Remove data from data file.
dataSample.Remove(x => x.Name == "BarFoo");
//remove all datasample from file.
dataSample.Remove(x => true);
//Compress the file for remove unused space from removed chunk.
store.Compress();
// erase al content of the file.
store.Drop();
Console.ReadLine();
}
}
The DataSample object used for the sample code is:
public class DataSample
{
public string Name { get; set; }
public string Description { get; set; }
public DataSample() { }
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net5.0-windows7.0 is compatible. net6.0 is compatible. 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. net6.0-windows7.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Newtonsoft.Json (>= 13.0.1)
-
net5.0-windows7.0
- Newtonsoft.Json (>= 13.0.1)
-
net6.0
- Newtonsoft.Json (>= 13.0.1)
-
net6.0-windows7.0
- Newtonsoft.Json (>= 13.0.1)
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.1 | 139 | 5/26/2023 |
none