/// <summary> /// Add ComplexTypeConfiguration /// </summary> /// <typeparam name="T"></typeparam> /// <param name="configuration"></param> public void AddConfiguration <T>(ComplexTypeConfiguration <T> configuration) where T : class { if (_IsModelCreated) { return; } lock (_LockObject) { //Don't add duplicates if (_Configurations.Count(p => p.GetType() == configuration.GetType()) > 0) { return; } _Configurations.Add(configuration); } }