public SqlAction(SchemaBase item) { if ((item.ObjectType1 == ObjectType1.Column) || (item.ObjectType1 == ObjectType1.Index) || (item.ObjectType1 == ObjectType1.Constraint)) Name = item.Name; else Name = item.FullName; action = item.Status; Type1 = item.ObjectType1; childs = new List<SqlAction>(); }
public void Add(SchemaBase item) { childs.Add(new SqlAction(item)); }