예제 #1
0
 public int Insert(EmbedDict ed)
 {
     CmdInsert.Parameters[EmbedDict.FldnInx].Value          = ed.Inx;
     CmdInsert.Parameters[EmbedDict.FldnDictId].Value       = ed.DictId;
     CmdInsert.Parameters[EmbedDict.FldnDictAddinsId].Value = ed.DictAddinsId;
     CmdInsert.Parameters[EmbedDict.FldnFreq].Value         = ed.Freq;
     return(CmdInsert.ExecuteNonQuery());
 }
예제 #2
0
        public int Insert(Dict w2v)
        {
            CmdInsert.Parameters[Dict.FldnWord].Value = w2v.Word;
            CmdInsert.Parameters[Dict.FldnVect].Value = w2v.Vect;
            var res = CmdInsert.ExecuteNonQuery();

            w2v.Id = Ctx.LastInsertRowId;
            return(res);
        }