コード例 #1
0
        public void Load_Sql()
        {
            DataDataContext aDataContext = new DataDataContext(ConnectionString);

            Contacts = aDataContext.DataCeShi;
            foreach (object i in Contacts)
            {
                DataCeShi d = (DataCeShi)i;
                CheckStrings[index++] = d.Regular;
            }
        }
コード例 #2
0
 public void Save_DataBase()
 {
     if (Pattern != null)
     {
         Create_DataBase();
         DataCeShi aNewContact = new DataCeShi {
             Regular = Pattern
         };
         DataDataContext aDataContext = new DataDataContext(ConnectionString);
         aDataContext.DataCeShi.InsertOnSubmit(aNewContact);
         aDataContext.SubmitChanges();
         Contacts = aDataContext.DataCeShi;
         foreach (object i in Contacts)
         {
             DataCeShi d = (DataCeShi)i;
             CheckStrings[index++] = d.Regular;
         }
     }
     Update();
 }
コード例 #3
0
 partial void DeleteDataCeShi(DataCeShi instance);
コード例 #4
0
 partial void UpdateDataCeShi(DataCeShi instance);
コード例 #5
0
 partial void InsertDataCeShi(DataCeShi instance);