update Solution.Projects.Types t set t.IsPublc = true, t.IsSealed = true where t.IsAssignableFrom(typeof(BaseType)) && (!t.IsPublic || !t.IsSealed);