Esempio n. 1
0
        public static void Empty(SQLSchema Schema)
        {
            var tables = Schema.BottomUpTableList;

            foreach (var table in tables)
            {
                string tableName = table.Name;

                if (Schema.TableNamePrefix != null)
                {
                    tableName = Schema.TableNamePrefix + tableName;
                }

                DropTable(tableName);
            }
        }
Esempio n. 2
0
        public static void DeleteFrom(SQLSchema Schema)
        {
            var tables = Schema.BottomUpTableList;

            foreach (var table in tables)
            {
                string tableName = table.Name;

                if (Schema.TableNamePrefix != null)
                {
                    tableName = Schema.TableNamePrefix + tableName;
                }

                string sql = "delete from [" + tableName + "]";

                Execute(sql);
            }
        }
Esempio n. 3
0
 public SQLTable(string name, SQLTable parent, SQLSchema schema)
 {
     Name   = name;
     Parent = parent;
     Schema = schema;
 }
Esempio n. 4
0
 public SQLTable(string name, SQLSchema schema)
 {
     Name   = name;
     Schema = schema;
 }