/// <summary> /// 添加单个 /// </summary> /// <param name="entity">实体</param> /// <returns>主键ID</returns> public virtual async Task <bool> Add(T entity) { IInsertable <T> insert = this.SugarClient.Insertable(entity); return(await insert.ExecuteCommandIdentityIntoEntityAsync()); }
/// <summary> /// /// </summary> /// <returns></returns> public Task <bool> ExecuteCommandIdentityIntoEntityAsync() { return(_insertable.ExecuteCommandIdentityIntoEntityAsync()); }