--CREATE DATABASE EXAM_1 --GO USE EXAM_1 --判断并删除表 IF OBJECT_ID('Scores') IS NOT NULL DROP TABLE Scores; GO IF OBJECT_ID('Courses') IS NOT NULL DROP TABLE Courses; GO IF OBJECT_ID('Students') IS NOT NULL DROP TABLE Students; GO IF OBJECT_ID('Teachers'
老师发送范围:TReceiveRange 家长发送范围:PReceiveRange 学生发送范围:SReceiveRange alter table Notifications add TReceiveRange text alter table Notifications add PReceiveRange text alter table Notifications add SReceiveRange text
把ContosoUniversity例子过了一遍,好象还是有很多东西未能理解,决定自己随便加个功能看可以自己完成不.... 从github的例子中clone下来ContosoUniversity项目,使用CodeFirst进行迁移后就可以得到一个正常运作的例子. 增加的课程计划 StudentCoursePlan.cs public partial class StudentCoursePlan { public int Id { get; set; } public int CourseId
实验楼表关系图 from utils.MyBaseModel import Base from django.db import models # # Create your models here. # 课程类别 class CourseType(Base): title = models.CharField('课程类别', max_length=32) sequence = models.IntegerField('顺序显示', default=10) class Meta: db_tabl