I have no control over the db schema and need to map two database columns to one property in my .Net class. The db engine is DB2
There are AUTH_DTtype DATEand AUTH_TMtype columns in the database TIME. The appropriate code should be:
public class Authorisation{
...
public virtual DateTime TransactionDate { get; set; }
...
}
public class AuthorisationMap : ClassMap<Authorisation>{
...
Map(x => x.TransactionDate);
...
}
How can I tell the map class to combine the date and time columns from db?
source
share