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