示例#1
0
        public async Task CreateTables()
        {
            await _connection.CreateTableAsync <Canteen>().AnyContext();

            await _connection.CreateTableAsync <Dish>().AnyContext();

            await _connection.CreateTableAsync <StudentExam>().AnyContext();

            await _connection.CreateTableAsync <Message>().AnyContext();

            await _connection.CreateTableAsync <StudentEvent>().AnyContext();

            await _connection.CreateTableAsync <Appointment>().AnyContext();

            await _connection.CreateTableAsync <Announcement>().AnyContext();

            await _connection.CreateTableAsync <AnnouncementEventMapping>().AnyContext();

            await _connection.ExecuteAsync(Semester.CreateSemesterView()).AnyContext();

            await _connection.ExecuteAsync(DisplayAnnouncement.CreateView).AnyContext();

            await _connection.CreateTableAsync <CourseFile>().AnyContext();

            await _connection.CreateTableAsync <RssItem>().AnyContext();
        }