aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-20 14:24:19 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-20 14:24:19 +0200
commite0b0859f62924d38c8cd7ac9975303c4bfb08624 (patch)
tree6c6b0d45cf2ed76e3d6405a5fb512ba4cba95288 /Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI
parentd204e56c57dcf52f31c9e64222f32a678150e721 (diff)
downloadTango-e0b0859f62924d38c8cd7ac9975303c4bfb08624.tar.gz
Tango-e0b0859f62924d38c8cd7ac9975303c4bfb08624.zip
Added environments support for users & roles !!
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/ObservablesGenerator.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/ObservablesGenerator.cs b/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/ObservablesGenerator.cs
index 876639b78..e45815046 100644
--- a/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/ObservablesGenerator.cs
+++ b/Software/Visual_Studio/Utilities/Tango.DBObservablesGenerator.CLI/ObservablesGenerator.cs
@@ -103,11 +103,12 @@ namespace Tango.DBObservablesGenerator.CLI
codeField.Name = codeField.Type;
codeField.XmlIgnore = true;
- var fk = foreignKeys.SingleOrDefault(x => x.Contains(codeField.Name));
+ var fk = foreignKeys.FirstOrDefault(x => x.Contains(codeField.Name));
if (fk != null)
{
codeField.Name = fk;
+ foreignKeys.Remove(fk);
}
codeField.Complex = true;