Can't set precision and scale on decimal when creating SQL Server CE table with NHibernate

Description

I'm using NHibernate mapping by code to create tables both on server (SQL Server 2008) and client (SQL Server CE 3.5).

This one column

works excellently on the server where it generates a decimal(10,8).

But on the SQL Server CE client it generates a numeric(19,0)? Am I doing something wrong in the mapping here? I'm using NHibernate 3.3.2.

Info :
NHibernate.Dialect.MsSqlCeDialect dialect has been used as follows

configuration.SetProperty(NHibernate.Cfg.Environment.Dialect, typeof(MsSqlCeDialect).AssemblyQualifiedName); configuration.SetProperty(NHibernate.Cfg.Environment.ConnectionDriver, typeof(SqlServerCeDriver).AssemblyQualifiedName);

Environment

None

Activity

Show:

Frédéric Delaporte October 2, 2017 at 4:31 PM

is resolved in 3.3.3, so this issue is supposed to be resolved too.

Duplicate

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created June 14, 2013 at 3:55 AM
Updated October 2, 2017 at 4:31 PM
Resolved October 2, 2017 at 4:31 PM
Who's Looking?