예제 #1
0
        public void Setup()
        {
            this.context = new LibrusDataContext(this.connString);
            if (this.context.DatabaseExists())
            {
                this.context.DeleteDatabase();
            }

            this.context.CreateDatabase();
        }
예제 #2
0
 public PresenceRepository(LibrusDataContext context)
 {
     this.context = context;
 }
예제 #3
0
 public void Clean()
 {
     this.context.Dispose();
     this.context = null;
 }
예제 #4
0
 public SubjectRepository(LibrusDataContext context)
 {
     this.context= context;
 }
예제 #5
0
 public ClassRepository(LibrusDataContext context)
 {
     this.context = context;
 }
예제 #6
0
 public TimeTableRepository(LibrusDataContext context)
 {
     this.context = context;
 }
예제 #7
0
 public StudentRepository(LibrusDataContext context)
 {
     this.context = context;
 }