public virtual async Task <bool> Update(DogEntry dogEntry)
        {
            string sql = "UPDATE AbpDogs SET Name=@Name,Age=@Age WHERE ID=@ID";

            return(await DbConnection.ExecuteAsync(sql, dogEntry, DbTransaction) > 0);
        }
        public virtual async Task <int> Create(DogEntry dogEntry)
        {
            string sql = "INSERT INTO AbpDogs(Name,Age) VALUES(@Name,@Age)";

            return(await DbConnection.ExecuteAsync(sql, dogEntry, DbTransaction));
        }
 public virtual async Task <bool> Update(DogEntry dogEntry)
 {
     return(await _dbConnection.UpdateAsync(dogEntry));
 }
 public virtual async Task <int> Create(DogEntry dogEntry)
 {
     return(await _dbConnection.InsertAsync(dogEntry));
 }
Esempio n. 5
0
 public virtual async Task <bool> Update(DogEntry dogEntry)
 {
     return(await DbConnection.UpdateAsync(dogEntry, DbTransaction));
 }
Esempio n. 6
0
 public virtual async Task <int> Create(DogEntry dogEntry)
 {
     return(await DbConnection.InsertAsync(dogEntry, DbTransaction));
 }