コード例 #1
0
 private void addingNewTuple()
 {
     if (StaticParams.currentRelation != null)
     {
         var addIdform = new addingTuples();
         addIdform.ShowDialog();
         var idList = addIdform.idTupleList;
         var pri    = StaticParams.currentRelation.schema.Attributes.Where(a => a.primaryKey).FirstOrDefault();
         var priAtr = $"{StaticParams.currentRelation.relationName.ToLower()}.{pri.AttributeName.ToLower()}";
         if (idList != null)
         {
             foreach (var id in idList)
             {
                 RawDatabaseService.Instance().insertEmptyTuple(StaticParams.currentRelation, pri, id.IDtuple);
             }
         }
         Parameter.activeTabIdx = 1;
         this.reloadDb();
     }
 }
コード例 #2
0
        private void btnIns_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var addTupleForm = new addingTuples();

            addTupleForm.ShowDialog();
        }