OrigoDB內(nèi)存中數(shù)據(jù)庫
OrigoDB 是一個開源的內(nèi)存中嵌入式數(shù)據(jù)庫,用于 .NET 和 Mono 應(yīng)用,百分百支持 ACID。
示例代碼:
// Generic model
var db = Db.For<KeyValueStore>("mode=embedded;");
db.Put("key", someValue);
db.Remove("key2");
// Domain specific model
var db = Db.For<BookmarkModel>("mode=remote;host=localhost;port=3001");
var bookmark = new Bookmark("http://origodb.com/", "OrigoDB Server");
bookmark.Tags.Add("in-memory");
db.SaveBookmark(bookmark);
var bookmarks = db.GetBookmarksByTag("awesome");評論
圖片
表情
