private void SetupJoiningTablesClass(IMapping Mapping, IProperty Property, IDatabase Key, SQL.DataClasses.Database TempDatabase)
        {
            if (TempDatabase.Tables.FirstOrDefault(x => x.Name == Property.TableName) != null)
            {
                return;
            }
            IMapping MapMapping = Mappings[Key].First(x => x.ObjectType == Property.Type);

            TempDatabase.AddTable(Property.TableName);
            TempDatabase[Property.TableName].AddColumn("ID_", DbType.Int32, 0, false, true, true, true, false, "", "", "");
            TempDatabase[Property.TableName].AddColumn(Mapping.TableName + Mapping.IDProperty.FieldName,
                                                       Mapping.IDProperty.Type.ToDbType(),
                                                       Mapping.IDProperty.MaxLength,
                                                       false,
                                                       false,
                                                       false,
                                                       false,
                                                       false,
                                                       Mapping.TableName,
                                                       Mapping.IDProperty.FieldName,
                                                       "");
            TempDatabase[Property.TableName].AddColumn(MapMapping.TableName + MapMapping.IDProperty.FieldName,
                                                       MapMapping.IDProperty.Type.ToDbType(),
                                                       MapMapping.IDProperty.MaxLength,
                                                       false,
                                                       false,
                                                       false,
                                                       false,
                                                       false,
                                                       MapMapping.TableName,
                                                       MapMapping.IDProperty.FieldName,
                                                       "");
        }
 private void SetupTables(IDatabase Key, SQL.DataClasses.Database TempDatabase)
 {
     foreach (IMapping Mapping in Mappings[Key])
     {
         TempDatabase.AddTable(Mapping.TableName);
         SetupProperties(TempDatabase[Mapping.TableName], Mapping);
     }
 }