Base4

Base4 is a Free (LGPL) application server for generating, sharing and re-using .Net data layers; this is intended to allow a development team to leverage existing enterprise systems and common functionality instead starting from scratch. It shares many similarities with WinFS but is significantly simpler because it doesn't need to be backward compatible with the whole of the Win32 API stack.

The latest version comes with a schema guesser to help new developers get started quickly. There is a video demonstrating this ability for setting up and writing in Base4 here.

Features

Planned features: Version 3.0

Code examples

Connecting to a server

using Base4.Storage;
StorageContext.SetDefault("tcp://Server:@localhost:999/default-store");

Requesting objects from a server

See the examples here: http://web.archive.org/web/20070928040717/www.base4.net/quickstarts/quickstarts.aspx

FileBase file = StorageContext.FindOne<FileBase>("Name='My File'"); 
//Above: same as StorageContext.Default.FindOne( … )

if (file != null)
{
        // ID is unique across all files.
        file.Name = "Updated";
        TextWriter writer = file.OpenWriter();
        writer.Write("Hello World");
        writer.Close();
        file.Save(); 
      //Above: Because the file has Base4 will update Version and Modified automatically for the file
}
User user = StorageContext.FindOne<User>("UserName='UserX'"); // Same as ItemContext.FindOne( … )
if (user != null)
{
        // User found do something.
        // Do Work
}

History

References

    External links

    This article is issued from Wikipedia - version of the 11/17/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.