예제 #1
0
        /// <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 = null;

            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);
        }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }