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

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