Exemple #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();
     }
 }
Exemple #2
0
 public static string ToString(TopicType topicType)
 {
     return ToString(ToTopicTypeEnum(topicType));
 }
Exemple #3
0
 partial void UpdateTopicType(TopicType instance);
Exemple #4
0
 partial void DeleteTopicType(TopicType instance);
Exemple #5
0
 partial void InsertTopicType(TopicType instance);