摘要: From "Professional Test-Driven Development with C#: Developing Real World Applications with TDD"In short, the repository pattern states that all data access will be encapsulated into a repository object, which the business domain classes will use to perform any and all persistence work.Eac 阅读全文
posted @ 2012-05-21 23:14 Bruce Jing 阅读(402) 评论(0) 推荐(0) 编辑
摘要: Excerpt from "The Definitive Guide To The Microsoft Enterprise Library 2007".In .NET Framework 1.0 and 1.1, ADO.NET provided the following interfaces to help facilitate creating database provider-independent application code: IDbConnection, IDbCommand, IDbDataAdapter, IDbDataParameter, IDb 阅读全文
posted @ 2012-04-30 11:06 Bruce Jing 阅读(184) 评论(0) 推荐(0) 编辑
摘要: When executing a method, there're 2 ojbects available inside the method:event objectthis point1. If the method called on an DomElement, this points to the DOM element.2. If the method called on an Object, this points to the object instance.As to 1st case,to access the object instance in which th 阅读全文
posted @ 2012-03-27 00:31 Bruce Jing 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Access a Control or Behavior's associated DomElement through: control.get_element(), behavior.get_element()Accessa DomElement's associated control through: element.controlAccess a DomElement's associated behavior through: element._behaviorsBehavior.getBehaviors(element)Behavior.getBehavi 阅读全文
posted @ 2012-03-26 23:41 Bruce Jing 阅读(99) 评论(0) 推荐(0) 编辑
摘要: (From "Advanced ASP.NET AJAX Server Controls For .NET Framework 3.5")1. IE下preventDefault(): window.event.returnValue = false.stopPropagation(): window.event.cancelBubble = true.preventDefault() + stopPropagation(): return false. 阅读全文
posted @ 2012-03-25 22:22 Bruce Jing 阅读(114) 评论(0) 推荐(0) 编辑