Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public override void DelParagraphDB(long pg_id)
        {
            var pMap     = new ParagraphMap(pg_id);
            var paraOper = new ParagraphOperator(pMap, OpersDB.odDelete);

            paraOper.Execute();
        }
Ejemplo n.º 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());
        }