
Object-Relational Mapping – Taking the Horror Out of Data Access
Object-Relational Mapping – Taking the Horror Out of Data Access 1. Horror stories and the object data divide Let’s face it, the world is getting more and more OO, but
Object-Relational Mapping – Taking the Horror Out of Data Access 1. Horror stories and the object data divide Let’s face it, the world is getting more and more OO, but
‘ Accept only properties and methods whose return value matches’ the Type passed as the second argument.’ Note: it requires Imports System.ReflectionFunction FilterByType(ByVal m As MemberInfo, ByVal filterCriteria As Object)
‘ This filtering function returns True if the member name ‘ begins with the character passed as its second argument.’ Note: it requires Imports System.ReflectionFunction FilterByName(ByVal m As MemberInfo, ByVal
‘ This code is taken from Francesco Balena’s’ “Programming Microsoft Visual Basic .NET” – MS Press 2002, ISBN 0735613753′ You can read a free chapter of the book at ‘
Reflection makes it easy to invoke a method (or assign a field or aproperty) by its name. For example, suppose you have the following classes: Class Person Event PropertyChanged(ByVal propertyName