コード例 #1
0
 public static string DeleteCurrentRow(string RowGuid)
 {
     try
     {
         HOCA_BILGI hocaBilgiObj = new HOCA_BILGI();
         hocaBilgiObj.GUID = Convert.ToInt64(RowGuid);
         DbOperations.Delete(hocaBilgiObj);
         return("success");
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
コード例 #2
0
        private bool FillParameters()
        {
            try
            {
                HOCA_BILGI HocaBilgiObj = new HOCA_BILGI();
                HocaBilgiObj.HOCA_ADI          = txtAd.Value;
                HocaBilgiObj.HOCA_SOYADI       = txtSoyad.Value;
                HocaBilgiObj.HOCA_BOLGE_ID     = Convert.ToInt64(slcMahalle.Value);
                HocaBilgiObj.HOCA_DOGUM_TARIHI = txtDogumTarihi.Value;
                HocaBilgiObj.HOCA_EMAIL        = txtEmail.Value;
                HocaBilgiObj.SINIF             = Convert.ToInt16(slcSinif.Value);
                HocaBilgiObj.HOCA_TEL          = txtTelNo.Value;

                DbOperations.Insert(HocaBilgiObj);
                return(true);
            }
            catch (Exception ex)
            {
                exErr = ex.Message;
                return(false);
            }
        }