On an already in place table in the database we are trying to Add a column for the CreationDate
mapping.Map(x => x.CreationDate)
.Not.Nullable()
.Default("to_date('01-01-0001','dd-MM-yyyy')")
This works perfectly fine with oracle but SQLite will not understand this, which is perfectly normal because it does not know the to_date() function.
If i use
DateTime.MinValue.ToString()
for the Default value with or without an specific format. Then it will work in SQLite but it wont work in Oracle.
Does someone know a solution to solve this.