Beispiel #1
0
        public void Delete(FLanguage fLanguage)
        {
            DataOperation dataOperation = new DataOperation();
            string        sql           = "delete  from TB_FamiliarForeign where id  in ('" + fLanguage.Id + "')";

            dataOperation.DeleteRecord(sql);
        }
Beispiel #2
0
        public void Insert(FLanguage fLanguage)
        {
            DataOperation dataOperation = new DataOperation();
            string        sql           = "select * from TB_FamiliarForeign where id  in ('" + fLanguage.Id + "')";
            DataTable     tb            = dataOperation.GetOneDataTable_sql(sql);

            if (tb.Rows.Count > 0)
            {
                dataOperation.Update1(fLanguage);
            }
            else
            {
                dataOperation.Insert1(fLanguage);
            }
        }