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(); } }
public static string ToString(TopicType topicType) { return ToString(ToTopicTypeEnum(topicType)); }
partial void UpdateTopicType(TopicType instance);
partial void DeleteTopicType(TopicType instance);
partial void InsertTopicType(TopicType instance);