Exemplo n.º 1
0
        /// <summary>
        /// 返回影响行数
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public int ReplaceInto(BaseEntity entity)
        {
            int    ret = 0;
            string sql = SQLBuilderHelper.GetReplaceInsertSQL(entity, this.GetORMDBType());

            ret = Excute(sql, entity);
            return(ret);
        }
        public async Task <int> ReplaceIntoAsync(BaseEntity entity)
        {
            string sql = SQLBuilderHelper.GetReplaceInsertSQL(entity, this.GetORMDBType());

            return(await ExcuteAsync(sql, entity));
        }