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;
}
}