Skip to content

MZBlog是衣明志个人博客的开源版本,现将其数据库由iBoxDB修改为LiteDB

License

Notifications You must be signed in to change notification settings

88037199/MZBlog-LiteDB

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mzblog

项目简介

MZBlog是衣明志个人博客的开源版本,基于NancyFX和MongoDB开发的。博客内容需要使用 MarkDown 进行编写。 衣明志是 GenerPoint 创始人,曾连任9年微软最有价值专家( MVP), MSDN 特约讲师。

2015年3月,MZBlog的数据库改为iBoxDB。

因为iBoxDB不开源,本人改为LiteDB

由于我也是第一次接触LiteDB,可能有些用法不正确。请看到的同行不吝赐教。

再次感谢衣明志,Mauricio David

some tips when using LiteDB from Mauricio David

  • When you open datafile, close as soon as possible (use using)
  • When you call GetCollection use a variable and reuse this variable. This method always need search collection page - it´s fast, but you can avoid that
  • Prefer use Exists() than Count() == 0. Exists stop when first document found
  • In your document class, if you have a get only property as computed property, use BsonIgnore attribute - it´s avoid serialization/deserialization and use less disk space

About

MZBlog是衣明志个人博客的开源版本,现将其数据库由iBoxDB修改为LiteDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 59.2%
  • C# 24.5%
  • JavaScript 13.2%
  • HTML 3.1%