コード例 #1
0
ファイル: SampleData.cs プロジェクト: sinm/NCouch
 public static Employee readEmployee(string id)
 {
     Employee e = new Employee();
     e.Data = readDocument(id);
     return e;
 }
コード例 #2
0
ファイル: Database.cs プロジェクト: sinm/NCouch
 public byte[] GetPicture(Employee emp)
 {
     var att = emp.Data.GetAttachment(PICTURE_NAME);
     return att == null ? null : db.ReadAttachment(att);
 }