Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromFileRetentBase(ref DataRow row, FileRetentBase entity)
 {
     row.SetField("file_name", entity.fileName);
     row.SetField("file_path", entity.filePath);
     row.SetField("description", entity.description);
     row.SetField("timeframe", entity.timeframe);
     row.SetField("retention_period", entity.retentionPeriod);
     row.SetField("timestamp", entity.timestamp);
     row.SetField("custom_data1", entity.customData1);
     row.SetField("custom_data2", entity.customData2);
     row.SetField("custom_data3", entity.customData3);
     row.SetField("custom_data4", entity.customData4);
     row.SetField("custom_data5", entity.customData5);
     row.SetField("row_status", entity.rowStatus);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("file_retentRowID", entity.rowID.ToByteArray());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, FileRetentBase entity)
 {
     row.SetField("fileName", entity.fileName);
     row.SetField("file_retentRowID", entity.rowID.ToByteArray());
 }