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

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