Пример #1
0
        public override long SaveParagraph(ParagraphMap pMap)
        {
            var paraOper = new ParagraphOperator(pMap, pMap.ParagraphID == -1 ? OpersDB.odInsert : OpersDB.odUpdate);

            paraOper.Execute();
            return(paraOper.ParagraphID);
        }
Пример #2
0
        public override void DelParagraphDB(long pg_id)
        {
            var pMap     = new ParagraphMap(pg_id);
            var paraOper = new ParagraphOperator(pMap, OpersDB.odDelete);

            paraOper.Execute();
        }
Пример #3
0
        public override List <SentenceMap> ReadParagraphDB(long pg_id)
        {
            var pMap     = new ParagraphMap(pg_id);
            var paraOper = new ParagraphOperator(pMap, OpersDB.odSelect);

            paraOper.Execute();
            return(paraOper.GetSentList());
        }