diff --git a/.gitignore b/.gitignore
index 8d00f84..cd53f00 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,7 @@
/[Pp]ackages
*.user
-
+/.idea
[Oo]bj
[Bb]in
/AssemblyVersion.cs
diff --git a/GraphLabs.Dal.Ef/Extensions/LabModeExtensions.cs b/GraphLabs.Dal.Ef/Extensions/LabModeExtensions.cs
new file mode 100644
index 0000000..057a836
--- /dev/null
+++ b/GraphLabs.Dal.Ef/Extensions/LabModeExtensions.cs
@@ -0,0 +1,37 @@
+using System;
+using GraphLabs.DomainModel;
+
+namespace GraphLabs.Dal.Ef.Extensions
+{
+ public static class LabModeExtensions
+ {
+ /// Значение -> строка
+ public static string ValueToString(this LabExecutionMode mode)
+ {
+ switch (mode)
+ {
+ case LabExecutionMode.IntroductoryMode:
+ return "Контрольный";
+ case LabExecutionMode.TestMode:
+ return "Ознакомительный";
+ default:
+ throw new Exception("something missing here");
+ }
+ }
+
+ public static LabExecutionMode? GetValueByString(string value)
+ {
+ if (value == null)
+ return null;
+ switch (value)
+ {
+ case "Контрольный":
+ return LabExecutionMode.TestMode;
+ case "Ознакомительный":
+ return LabExecutionMode.IntroductoryMode;
+ default:
+ return null;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/GraphLabs.DomainModel/GraphLabs.DomainModel.csproj b/GraphLabs.DomainModel/GraphLabs.DomainModel.csproj
index 57e75c8..57f5c58 100644
--- a/GraphLabs.DomainModel/GraphLabs.DomainModel.csproj
+++ b/GraphLabs.DomainModel/GraphLabs.DomainModel.csproj
@@ -316,8 +316,8 @@
- cd "$(SolutionDir)"
-powershell "& ""$(SolutionDir)\generateVersionInfo.ps1"""
+ cd "$(SolutionDir)"
+ powershell "& ""$(SolutionDir)\generateVersionInfo.ps1"""