aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.BL/EntityFrameworkExtensionsHelper.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-19 01:45:02 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-19 01:45:02 +0300
commit4e216a0ca8ad3608b845fa445b73034e1a67b8af (patch)
tree67e0ea698cfe5a8320aa81d8c13579e8ae6a6860 /Software/Visual_Studio/FSE/Tango.FSE.BL/EntityFrameworkExtensionsHelper.cs
parentf4c418cced4c6fb25ec5d4cb2bcb4ce0f766efd0 (diff)
downloadTango-4e216a0ca8ad3608b845fa445b73034e1a67b8af.tar.gz
Tango-4e216a0ca8ad3608b845fa445b73034e1a67b8af.zip
DB: Changed TechMonitors HeadZone5_6HeaterCurrent => HeadZone56HeaterCurrent
Working on insights and insights annotations. Added insights events. Added insights settings to PPC advanced settings. Added compression support for transport adapters. Implemented compression support on TCP/SignalR/WebRTC. Added Compression flag to ExternalBridge discovery packet. Added compression setting to PPC advanced settings. Refactored transport layer to use Bson instead of Json for Generic Messages. Added all SciChart referenced assemblies. Registered EF Extensions license for FSE. Added support for FSE PushTask notification cancel button.
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.BL/EntityFrameworkExtensionsHelper.cs')
-rw-r--r--Software/Visual_Studio/FSE/Tango.FSE.BL/EntityFrameworkExtensionsHelper.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.BL/EntityFrameworkExtensionsHelper.cs b/Software/Visual_Studio/FSE/Tango.FSE.BL/EntityFrameworkExtensionsHelper.cs
new file mode 100644
index 000000000..0f5ce3cf1
--- /dev/null
+++ b/Software/Visual_Studio/FSE/Tango.FSE.BL/EntityFrameworkExtensionsHelper.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.FSE.BL
+{
+ public static class EntityFrameworkExtensionsHelper
+ {
+ public static void SetupLicense(String licenseName, String licenseKey)
+ {
+ Z.EntityFramework.Extensions.LicenseManager.AddLicense(licenseName, licenseKey);
+
+ string licenseErrorMessage;
+ if (!Z.EntityFramework.Extensions.LicenseManager.ValidateLicense(out licenseErrorMessage))
+ {
+ throw new Exception(licenseErrorMessage);
+ }
+ }
+ }
+}