I'll try and give this a shot today. I wonder if I'll still have
On Aug 22, 3:14 am, Snahider <
snahi...@gmail.com> wrote:
> I faced a similar problem with the substring function. I extended the
> dialect for the database
>
> public class CustomSQLiteDialect:SQLiteDialect
> {
> public CustomSQLiteDialect()
> {
> RegisterFunction("substr", new StandardSQLFunction
> ("substr", NHibernateUtil.String));
> RegisterFunction("substring", new StandardSQLFunction
> ("substr", NHibernateUtil.String));
> }
> }
>
> In the config file use the CustomDialect:
> <property
> name="dialect">Tests.Northwind.Data.Dialect.CustomSQLiteDialect,
> Northwind.Tests</property>
>
> Try to add something like:
>
> RegisterColumnType(System.Data.DbType.DateTime2, "date");
>
..