When lazy loading is true the returned type from a db call will be a proxy, so if you call GetType() you will get the proxy type not the underlying class.
To overcome this use NHibernateUtil.GetClass(object-instance).
Monday, 21 May 2007
Friday, 11 May 2007
C# Date encoding / parse
DateTime.Parse requires a Culture to be set to use a specific format.
If the format is known then a better alternative is to use new DateTime(year,month,day).
If the format is known then a better alternative is to use new DateTime(year,month,day).
C# Windows dock overlap
Where panels etc are 'docked' in a windows form they can sometimes overlap (eg Left dock overlaps the Fill dock panel). To overcome this the overlapping panel must be 'Sent to Back'
Subscribe to:
Posts (Atom)