/// <summary>
        /// 提交当前操作的结果
        /// </summary>
        public async Task <int> Commit()
        {
            try
            {
                DbContextExtension.SetEntityDefaultValue(dbcontext);

                int returnValue = await dbcontext.SaveChangesAsync();

                if (dbTransaction != null)
                {
                    dbTransaction.Commit();
                    this.Close();
                }
                else
                {
                    this.Close();
                }
                return(returnValue);
            }
            catch
            {
                throw;
            }
            finally
            {
                if (dbTransaction == null)
                {
                    this.Close();
                }
            }
        }