コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromTopicMapBase(ref DataRow row, TopicMapBase entity)
 {
     row.SetField("Object-filename", entity.objectFilename);
     row.SetField("Topic-name", entity.topicName);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("transproc", entity.transproc);
     row.SetField("topic-mapRowID", entity.rowID.ToByteArray());
 }
コード例 #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, TopicMapBase entity)
 {
     row.SetField("objectFilename", entity.objectFilename);
     row.SetField("topicName", entity.topicName);
     row.SetField("topic-mapRowID", entity.rowID.ToByteArray());
 }