Archive

Archive for the ‘Core Model’ Category

 

Composition of the Core Model

November 26th, 2008

Common

  • Tester : a simple unit testing launcher.
  • Chronometer : time measurement functions.
  • StringTool : strings functions.
  • Localizer : strings localization.
  • AppInfo : system, application and folders information.
  • AppTool : system and application functions.
  • ThreadManager : threads list manager.

Files

  • FolderTool : folders functions.
  • FileTool : files functions.
  • FolderLister : folder entries lister.
  • FileLister : files entries lister.
  • Filer : read, write and serialize functions.

Debugger

  • Debug : a custom debugger.
  • ExceptionInfo : extract details about exceptions.
  • ExceptionForm : a default exception winform.
  • LogManager : a log manager.
  • LogForm : a default log winform.

Remoting

  • RemotingTool : remoting encapsulation.
  • RemoteClient : a generic remote client.
  • RemoteServer : a generic remote server.

Types

  • Tree : a generic tree class.
  • Singleton : a generic singleton factory.
  • EmbeddedValue : a embedded typed value with assign controls and triggers.
  • EmbeddedOrdinal : an embedded ordinal value.

Print Print      Email Email

 

New class ObjectContainer

July 13th, 2009

ObjectContainer is a generic class to implement the storage of serializable objects in a file system, an archive, a database or anything else.

[Serializable]
public class TestItem : IObjectWithID
{
  public Guid ID { get; private set; }
  public string Name { get; set; }
  public TestItem()
  {
    ID = Guid.NewGuid();
    Name = "Item Name";
  }
}

SQLiteContainer container = new SQLiteContainer("db.bin");
container.Active = true;
Guid id = container.Add(new TestItem(), "GlobalNamespace");
TestItem item = (TestItem)container.Retrieve(id);
item.Name = "New name";
container.Update(item);
container.Delete(item);
container.Active = false;

Print Print      Email Email