Ejemplo n.º 1
0
        public void SetUp()
        {
            DbStructureGateway sgateway = DbStructureGateway.Instance;

            sgateway.DropTables(typeof(User).Assembly);
            sgateway.CreateTables(typeof(User).Assembly);

            TestData data = new TestData(sgateway.Accessor);
            long     user = data.CreateUser();

            generator = new DbCodeGenerator(sgateway)
            {
                Namespace = "ITCreatings.Ndb.GeneratedObjects"
            };
        }
Ejemplo n.º 2
0
        public void CreateTables()
        {
            var types = new[]
            {
                typeof(TestGuidRecord),
                typeof(TestStringLength),
                typeof(BinaryDataRecord),
                typeof(User),
                typeof(TasksAssignment),
                typeof(Task),
                typeof(Event),
                typeof(WorkLog)
            };

            sgateway.CreateTables(types);
        }