Esempio n. 1
0
 public static TopicTypeEnum ToTopicType(TopicType topicType)
 {
     switch (topicType.Name)
     {
         case "Test": return TopicTypeEnum.Test;
         case "Theory": return TopicTypeEnum.Theory;
         case "TestWithoutCourse": return TopicTypeEnum.TestWithoutCourse;
         default: throw new ArgumentOutOfRangeException();
     }
 }
Esempio n. 2
0
 public static string ToString(TopicType topicType)
 {
     return ToString(ToTopicTypeEnum(topicType));
 }
Esempio n. 3
0
 partial void UpdateTopicType(TopicType instance);
Esempio n. 4
0
 partial void DeleteTopicType(TopicType instance);
Esempio n. 5
0
 partial void InsertTopicType(TopicType instance);