示例#1
0
 protected void PerformSetsAndColumnsCheck(SettingsIndexResultSet.KeysChoice defaultKeysSet, SettingsIndexResultSet.ValuesChoice defaultValuesSet)
 {
     if ((keysSet != defaultKeysSet || valuesSet != defaultValuesSet) &&
         definitionColumns.Any(c => !string.IsNullOrEmpty(c.Name)))
     {
         throw new InvalidOperationException("You cannot define an engine based on columns' index and specify some columns' definition where you explicitely give a value to the 'name' attribute. Use attribute 'index' in place of 'name'.");
     }
 }
示例#2
0
 public void Setup(SettingsIndexResultSet.KeysChoice keysSet, SettingsIndexResultSet.ValuesChoice valuesSet)
 {
     isBuild        = false;
     this.keysSet   = keysSet;
     this.valuesSet = valuesSet;
 }