Mapping with Expressions

Posted by: K. Scott Allen, on 14 Nov 2008 | View original | Bookmarked: 0 time(s)

Once you know about the magic of Expression<T>, its hard not to make use of it. Or perhaps, abuse it. Here is an excerpt of a class I wrote that uses Expression<T> as a reflection helper. public class PropertySpecifier<T> { public PropertySpecifier( Expression<Func<T, object>> expression) { _expression = (expression.Body) as MemberExpression; if (_expression == null) { // raise an error ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Regex | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1299 | Hits: 41

Similar Posts

  • Screencast Whats new in the Entity Data Model Designer in VS2010 more
  • October's Toolbox Column Now Online more
  • Filtering with string parameter that allows free user input more
  • How to retire (respectfully) legacy systems more
  • September's Toolbox Column Now Online more
  • A total n00bs guide to migrating from a custom data layer to Nhibernate: so many choices more
  • Next version of EF Code Only Design laid out by MS more
  • Create NHibernate classes using T4 more
  • Using Stored Procedures for CRUD more
  • WPF / Silverlight: RadChart and BindableLinq more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD