コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QuackingDictionaryDebugView"/> class.
 /// </summary>
 /// <param name="dictionary">The dictionary.</param>
 public QuackingDictionaryDebugView(QuackingDictionary dictionary)
 {
     this.items = dictionary.items;
 }
コード例 #2
0
 private void WarnIfNull(QuackingDictionary row, string field)
 {
     if (row[field] == null) {
         Warn("Null in {0}! Type: {1}", field, row["type"]);
     }
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QuackingDictionaryDebugView"/> class.
 /// </summary>
 /// <param name="dictionary">The dictionary.</param>
 public QuackingDictionaryDebugView(QuackingDictionary dictionary)
 {
     this.items = dictionary.items;
 }
コード例 #4
0
 private static bool Equal(QuackingDictionary newRow, QuackingDictionary oldRow)
 {
     var fields = new string[] { "use", "lastused", "count", "created", "name", "server", "database", "schema", "dropped" };
     return fields.All(field => newRow[field].Equals(oldRow[field]));
 }