public object Disassemble(object value) { if (value == null) { return(DBNull.Value); } if (value == DBNull.Value) { return(DBNull.Value); } if (!(value is IDictionary <string, Qonverter.Settings.ScoreInfo>)) { throw new ArgumentException(); } return(QonverterSettings.assembleScoreInfo(value as IDictionary <string, Qonverter.Settings.ScoreInfo>)); }
public void Add(QonverterSettings qs) { insertRow(Table.QonverterSettings, new object[] { qs.Analysis.Id, qs.QonverterMethod, qs.DecoyPrefix, qs.RerankMatches, QonverterSettings.assembleScoreInfo(qs.ScoreInfoByName) }); }