Skip to content

Commit

Permalink
INTERNALTOOLS-111 MONGOMAPPER ReflectionUtility.CheckRelations para c…
Browse files Browse the repository at this point in the history
…omprobar nombres de objectos y campos
  • Loading branch information
emiliotorrens committed Dec 15, 2015
1 parent 016781a commit ab78558
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions EtoolTech.MongoDB.Mapper/Core/ReflectionUtility.cs
Expand Up @@ -55,7 +55,9 @@ public static void CheckRelations(Assembly Assembly, string ClassName)
{
if (!localPropertiesNames.Contains(relationFieldName))
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("WARNING: field {0} does not exists in {1}", relationFieldName, type.Name);
Console.ResetColor();
}
}

Expand All @@ -77,7 +79,9 @@ public static void CheckRelations(Assembly Assembly, string ClassName)
{
if (!destinationPropertiesNames.Contains(relationFieldName))
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("WARNING: field {0} does not exists in {1}", relationFieldName, destinationType.Name);
Console.ResetColor();
}
}
}
Expand Down

0 comments on commit ab78558

Please sign in to comment.