Beispiel #1
0
        public DataModule()
        {
            InitializeComponent();
            dataSetKaioordinate.EnforceConstraints = false;

            KaiTableAdaptor.Fill(dataSetKaioordinate);
            EventRegistorAdaptor.Fill(dataSetKaioordinate);
            EventAdaptor.Fill(dataSetKaioordinate);
            LocationAdaptor.Fill(dataSetKaioordinate);
            WhanauAdapter.Fill(dataSetKaioordinate);


            KaiTable           = dataSetKaioordinate.Tables["KAI"];
            EventTable         = dataSetKaioordinate.Tables["EVENT"];
            EventRegisterTable = dataSetKaioordinate.Tables["EVENTREGISTER"];
            LocationTable      = dataSetKaioordinate.Tables["Location"];
            WhanauTable        = dataSetKaioordinate.Tables["Whanau"];

            KaiView                = new DataView(KaiTable);
            KaiView.Sort           = "KaiID";
            EventView              = new DataView(EventTable);
            EventView.Sort         = "EventID";
            EventRegisterView      = new DataView(EventRegisterTable);
            EventRegisterView.Sort = "RegistrationID";
            LocationView           = new DataView(LocationTable);
            LocationView.Sort      = "LocationID";
            WhanauView             = new DataView(WhanauTable);
            WhanauView.Sort        = "WhanauID";

            dataSetKaioordinate.EnforceConstraints = true;
        }
Beispiel #2
0
 public void UpdateWhanauTable()
 {
     WhanauAdapter.Update(WhanauTable);
 }