Exemplo n.º 1
0
 public void Create()
 {
     var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");
     Utilities.ORM.Manager.Schema.Interfaces.ITable View = Database.AddView("TestView");
     Assert.Equal(View, Database.Views.First());
     Assert.Equal("TestView", View.Name);
 }
Exemplo n.º 2
0
 public void AddColumn()
 {
     var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");
     Utilities.ORM.Manager.Schema.Interfaces.ITable View = Database.AddView("TestView");
     View.AddColumn<int>("Column1", DbType.Int32, 0, true);
     Assert.Equal(1, View.Columns.Count);
 }
 public void AddView()
 {
     var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");
     Database.AddView("TestTable");
     Assert.Equal(1, Database.Views.Count);
     Assert.Equal("TestTable", Database.Views.First().Name);
     Assert.Equal(Database, Database.Views.First().Source);
 }
Exemplo n.º 4
0
        public void Create()
        {
            var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");

            Utilities.ORM.Manager.Schema.Interfaces.ITable View = Database.AddView("TestView");
            Assert.Equal(View, Database.Views.First());
            Assert.Equal("TestView", View.Name);
        }
Exemplo n.º 5
0
        public void AddColumn()
        {
            var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");

            Utilities.ORM.Manager.Schema.Interfaces.ITable View = Database.AddView("TestView");
            View.AddColumn <int>("Column1", DbType.Int32, 0, true);
            Assert.Equal(1, View.Columns.Count);
        }
        public void AddView()
        {
            var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");

            Database.AddView("TestTable");
            Assert.Equal(1, Database.Views.Count);
            Assert.Equal("TestTable", Database.Views.First().Name);
            Assert.Equal(Database, Database.Views.First().Source);
        }