28. Npgsqlサンプルコード
using (var conn = new NpgsqlConnection(connStr))
{
conn.Open();
var dataAdapter = new NpgsqlDataAdapter(
@"select * from table_name", conn);
var dataSet = new DataSet();
dataAdapter.Fill(dataSet);
}
35. ? Sample
ServiceStack.Redisの特徴
var client = new RedisNativeClient("127.0.0.1", 6379);
var value = client.LPop("list-key");
var client = new RedisClient("127.0.0.1", 6379);
var value = client.As<Model>().GetItemFromList("list-key");
var manager = new PooledRedisClientManager("127.0.0.1:6379");
var client = manager.GetClient();
var value = client.Get<Model>("key");