﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on Active Record: Mapping Rewriting</title><description>Validation - that your domain model is matching the requirements. For instance, that all the entities override equals / get hash code.
  
  
And yes, those are the naming convention I am talking about.
</description><link>http://ayende.com/3092/active-record-mapping-rewriting#comment3</link><guid>http://ayende.com/3092/active-record-mapping-rewriting#comment3</guid><pubDate>Thu, 24 Jan 2008 04:19:59 GMT</pubDate></item><item><title>Chris Ortman commented on Active Record: Mapping Rewriting</title><description>When you say we can apply naming conventions or validation do you mean that we could have classes declared 
  
  
public class MyClass {
  
  
  [Property]
  
  public string MyProperty { get; set; }
  
}
  
  
And apply a convention that column names all start with a type, so override the property declaration as if it were declared
  
[Property("strMyProperty")]
  
  
Also, what would be a use case for validations here? 
  
Thanks
</description><link>http://ayende.com/3092/active-record-mapping-rewriting#comment2</link><guid>http://ayende.com/3092/active-record-mapping-rewriting#comment2</guid><pubDate>Thu, 24 Jan 2008 04:17:56 GMT</pubDate></item><item><title>James Kovacs commented on Active Record: Mapping Rewriting</title><description>I used a similar trick with NHibernate to insert test data into a read-only table for testing.
  
  
http://www.jameskovacs.com/blog/TestingImmutableEntitiesWithNHibernate.aspx
  
  
The extensibility and flexibility of NHibernate and Active Record are amazing.
</description><link>http://ayende.com/3092/active-record-mapping-rewriting#comment1</link><guid>http://ayende.com/3092/active-record-mapping-rewriting#comment1</guid><pubDate>Fri, 11 Jan 2008 18:57:35 GMT</pubDate></item></channel></rss>