Ejemplo n.º 1
0
        public void RemoveSchool(School school, SQLiteConnection Connection)
        {
            SchoolTeams st = (from sch in Schools where sch.School == school select sch).FirstOrDefault();

            //SQLCommands.SchoolTeamsSQLCommands.DeleteSchoolTeam ( school.ID, this.ID , Connection );

            DState.IO.Delete <SchoolTeams> (st);

            school.voidStorage( );
            this.__Schools.refresh( );
        }
Ejemplo n.º 2
0
        public void AddSchool(School school, DataAccess.Database IO)
        {
            SchoolTeams st = new SchoolTeams()
            {
                School = school, Team = this
            };

            //SQLCommands.SchoolTeamsSQLCommands.InsertSchoolTeam ( st , IO.Connection );

            DState.IO.Add <SchoolTeams>(st);

            this.voidStorage( );
            school.voidStorage( );
            this.__Schools.refresh( );
        }