コード例 #1
0
        protected void CacheUpdateCommand(SqlCommandKey sqlCommandKey, SqlCommandValue sqlCommandValue)
        {
            var newDictionary = new Dictionary <SqlCommandKey, SqlCommandValue>(this.SqlDatabaseContext.formattedUpdateSqlCache, CommandKeyComparer.Default);

            newDictionary[sqlCommandKey] = sqlCommandValue;

            this.SqlDatabaseContext.formattedUpdateSqlCache = newDictionary;
        }
コード例 #2
0
 protected bool TryGetUpdateCommand(SqlCommandKey sqlCommandKey, out SqlCommandValue sqlCommandValue)
 {
     return(this.SqlDatabaseContext.formattedUpdateSqlCache.TryGetValue(sqlCommandKey, out sqlCommandValue));
 }