AddMapping() private method

private AddMapping ( Type source, Type target ) : void
source System.Type
target System.Type
return void
        private void DatabaseDatabaseOnSetupDone(object sender, EventArgs eventArgs)
        {
            ReposetoryCreated = false;
            lock (LockRoot)
            {
                foreach (var dbPropertyInfoCach in _typeInfo.Propertys)
                {
                    if (dbPropertyInfoCach.Value.ForginKeyDeclarationAttribute != null &&
                        dbPropertyInfoCach.Value.ForginKeyDeclarationAttribute.Attribute.ForeignType != null)
                    {
                        _databaseDatabase.AddMapping(_typeInfo.Type,
                                                     dbPropertyInfoCach.Value.ForginKeyDeclarationAttribute.Attribute.ForeignType);
                    }
                }

                ReposetoryCreated = true;
            }
        }