public void Delete(Edil record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbledil.NewttbledilRow(); Edil.BuildMinimalRow(ref row, record); this.dataSet.ttbledil.AddttbledilRow((pdsedilDataSet.ttbledilRow)row); } row.Delete(); this.SaveChanges(); }