aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-23 11:17:23 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-23 11:17:23 +0300
commitea97f593f82a1176125901c257c8e81c45c23b67 (patch)
tree338a2fee2470779e6094d21b586d6b2a653f4c94 /Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs
parenta8718859eea4329ec9ecd3f7155e0001aa610c3d (diff)
downloadTango-ea97f593f82a1176125901c257c8e81c45c23b67.tar.gz
Tango-ea97f593f82a1176125901c257c8e81c45c23b67.zip
ObservablesContext is now LazyLoading = 'false' by default.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs b/Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs
index 49c80695f..f387bd1e1 100644
--- a/Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs
+++ b/Software/Visual_Studio/Tango.BL/ObservablesContextExtension.cs
@@ -34,6 +34,7 @@ namespace Tango.BL
public ObservablesContext(DataSource dataSource) : base(dataSource.ToConnection(), true)
{
Database.SetInitializer<ObservablesContext>(null);
+ Configuration.LazyLoadingEnabled = false;
_adapter = new ObservablesContextAdapter(this);
}