Kairyu.Database 0.5.0.2 beta

Rating: No reviews yet
Downloads: 25
Change Set: bc4a6a1c1352
Released: Feb 1, 2015
Updated: Feb 1, 2015 by mk3008
Dev status: Beta Help Icon

Recommended Download

Application Kairyu.Database 0.5.0.2
application, 46K, uploaded Jan 31, 2015 - 25 downloads

Release Notes

主な変更点

機能追加

  • #115 単純な検索条件はサポートする
  • #119 IDbConnectionの拡張メソッドでLoad

その他

  • #118 クラス名の変更
  • #116 空の配列生成処理の見直し
  • #120 LoadableListActivatorが遅い

拡張メソッド、単純な検索条件(ID検索)のサンプル

IDbConnection.ToLoader - VB.NET
Dim c As Sample
Using cn As IDbConnection = New SqlClient.SqlConnection(My.Resources.SQL_SERVER_CNSTRING)
    cn.Open()
    c = cn.ToLoader("@").Load(Of Sample).IdSearch(1).ToItem
End Using

IDbTransaction.ToSaver - VB.NET
Dim c As Sample
Using cn As IDbConnection = New SqlClient.SqlConnection(My.Resources.SQL_SERVER_CNSTRING)
    cn.Open()
    Using trn As IDbTransaction = cn.BeginTransaction
        trn.ToSaver("@").SaveAsNew(New Sample With {.SampleID = 2, .SampleName = "Sample2"})
        trn.Commit()
    End Using
    c = cn.ToLoader("@").Load(Of Sample).IdSearch(2).ToItem
End Using

Reviews for this release

No reviews yet for this release.