Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWllicenseBase(ref DataRow row, WllicenseBase entity)
 {
     row.SetField("appname", entity.appname);
     row.SetField("apptype", entity.apptype);
     row.SetField("licensedt", entity.licensedt);
     row.SetField("secure", entity.secure);
     row.SetField("licenseto", entity.licenseto);
     row.SetField("custno", entity.custno);
     row.SetField("licenseno", entity.licenseno);
     row.SetField("numusers", entity.numusers);
     row.SetField("graceperiod", entity.graceperiod);
     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("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("wllicenseRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, WllicenseBase entity)
 {
     row.SetField("appname", entity.appname);
     row.SetField("wllicenseRowID", entity.rowID.ToByteArray());
 }