/// <summary> /// Gets the identity information for an specific table. /// </summary> /// <param name="_TableName">The name of the table to get the identity information.</param> /// <returns>A dictionary containing the indentity information for the specified table.</returns> public static Dictionary <String, String> GetIndentityInformation(String _TableName) { String TableName = _TableName.ToUpper(); Dictionary <String, String> result; if (!Identities.TryGetValue(TableName, out result) && ConfigSection != null) { AdoIdentityTableColumnConfigurationElement table = ConfigSection.Tables[TableName]; if (table != null) { Identities.Add(table.TableName, new Dictionary <string, string>()); foreach (AdoIdentityColumnConfigurationElement element in table.Columns) { Identities[table.TableName].Add(element.ColumnName, element.SequenceName); } result = Identities[table.TableName]; } } return(result); }
/// <summary> /// Adds a new element to the collection. /// </summary> /// <param name="tableConfig">The factory to be added.</param> public void Add(AdoIdentityTableColumnConfigurationElement tableConfig) { BaseAdd(tableConfig); }