예제 #1
0
 public bool Update(DbGlobalCooldowns updatedCooldown)
 {
     return(Context.Connection.Execute("UPDATE fso_global_cooldowns SET expiry = @expiry WHERE object_guid = @object_guid AND " +
                                       "avatar_id = @avatar_id AND user_id = @user_id AND category = @category", updatedCooldown) > 0);
 }
예제 #2
0
 public bool Create(DbGlobalCooldowns newCooldown)
 {
     return(Context.Connection.Execute("INSERT INTO fso_global_cooldowns (object_guid, avatar_id, user_id, category, expiry) " +
                                       "VALUES (@object_guid, @avatar_id, @user_id, @category, @expiry)", newCooldown) > 0);
 }