System.Data.Common.DataTableMappingCollection.AddWithoutEvents(System.Data.Common.DataTableMapping)

Here are the examples of the csharp api class System.Data.Common.DataTableMappingCollection.AddWithoutEvents(System.Data.Common.DataTableMapping) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

View license
private DataTableMapping Add(DataTableMapping value) {
            AddWithoutEvents(value);
            return value;
        }

2. Example

View license
private void AddEnumerableRange(IEnumerable values, bool doClone) {
            if (null == values) {
                throw ADP.ArgumentNull("values");
            }
            foreach(object value in values) {
                ValidateType(value);
            }
            if (doClone) {
                foreach(ICloneable value in values) {
                    AddWithoutEvents(value.Clone() as DataTableMapping);
                }
            }
            else {
                foreach(DataTableMapping value in values) {
                    AddWithoutEvents(value);
                }
            }
        }