{
keyStream
key = DbEntry
}
if (data
{
dataStream
data = DbEntry
}
continue;
case ReadStatus
dataStream
dataStream
cust = (IPut)formatter
return true;
default:
return false;
}
} while (true);
}
}
調用方法
首先要有一個寫入的實體類
class Item : IPut
{
public string Name { get; set; }
public string Text { get; set; }
public int ID { get; set; }
public override string ToString()
{
return string
}
public string Key
{
get { return Name; }
}
}
操作
{
bool success = manager
Console
}
using (BDBManager manager = new BDBManager(
{
IPut put = new Item() { Name =
bool success = manager
Console
}
using (BDBManager manager = new BDBManager(
{
IPut put = new Item() { Name =
bool success = manager
Console
}
using (BDBManager manager = new BDBManager(
{
List<IPut> list = manager
foreach (var item in list)
{
Console
}
}
Console
Console
[
From:http://tw.wingwit.com/Article/program/net/201311/14797.html