So, there is a certain collection of interfaces. Each element in it is a different task releasing the ITask interface:
public interface ITask { string Name { get; set; } string Type { get; set; } void Run(); void Edit(); void Save(); } Each class that implements this interface has its own tasks and, accordingly, its own fields, its own customization views, etc., to summarize all this does not seem possible and reasonable. Around this concept was twisted logic and it worked until it was time to write the saving tasks in the database. And then it began, the whole curve of this scenario got into all the fields. I came to the concept - I will be serialized in JSON to the Base and that's it. So an idea, but did not invent anything better. The farther into the forest, the more appeared crutches and bicycles. As a result, the code turned into a hellish idle and difficult to debug mess. A few days I spit it so and so. Coming with a bow to you. Tell me, how do normal people solve such problems?