2008-06-14から1日間の記事一覧

補足

(これの補足)SessionStateAdapter クラスはこの記事のやつ (「ここからが、肝心の〜」以降の話は、あんま関係ない)。 IView インターフェイスは、なんもメンバーを持たない、単なるマーカーインターフェイス。 Controller クラスは今んトコこんなの。 /// <summary> /</summary>…

勘違い

(これの続き)別にデータバインディングは楽勝で使えた。勘違いしてた時のコード public sealed class LendController : Controller<ILendView> { private IList<BookEntity> _lendBookEntities; public void AddBookEntity(string bookId, string localId) { BookEntity bookEntity </bookentity></ilendview>…

IList.Count

IList<Hoge> hoges = GetHoges(); Assert.That(hoges, Has.Count(5), "hoges の要素数が 5 であるか"); これ、GetHoges が List 等のコレクションではなく配列を返してくると、アサートをパスしない。 配列の場合は、要素数の取得に Count プロパティではなく Leng</hoge>…

|д゚)カンサツ

Hiroshi Okunushi's Blog ☆ミ : 【TechEd】 登壇者募集! http://www.microsoft.com/japan/powerpro/community/te08program/default.mspx

ふーーーむ

書籍「ドメイン駆動」のリポジトリの作りがどうも気に入らない。 こんな風*1にするのはどうだろう。 public abstruct class Repository { public UserRepository OfUser { get { return this.CreateUserRepository(); } } protected abstruct UserRepository…