ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wt <waynethe...@gmail.com>
Subject .net decimal -> Ignite is being stored as Other
Date Tue, 18 Sep 2018 15:42:57 GMT
i have the following class

        [QuerySqlField]
        public int vd { get; set; }
        [QuerySqlField]
        public long sharesinindex { get; set; }
        [QuerySqlField]
        public string name { get; set; }
        [QuerySqlField]
        public string isin { get; set; }
        [QuerySqlField]
        public string sedol { get; set; }
        [QuerySqlField]
        public string ric { get; set; }
        [QuerySqlField]
        public decimal close { get; set; }
        [QuerySqlField]
        public decimal rate { get; set; }

when i configure ignite with this class in .net and start the server it
correctly sets all the other fields just not the decimals. The documentation
states

DECIMAL
Possible values: Data type with fixed precision and scale.

Mapped to:

Java/JDBC: java.math.BigDecimal
.NET/C#: decimal
C/C++: ignite::Decimal
ODBC: SQL_DECIMAL


Why is Ignite not mapping this correctly ->  tables.png
<http://apache-ignite-developers.2346864.n4.nabble.com/file/t604/tables.png>  


here is the config

            var cfg = new IgniteConfiguration
            {
                DiscoverySpi = new TcpDiscoverySpi
                {
                    IpFinder = new TcpDiscoveryStaticIpFinder
                    {
                        Endpoints = new[] { "127.0.0.1:47500..47509" }
                    },
                    SocketTimeout = TimeSpan.FromSeconds(0.3)
                },
                CacheConfiguration = new[]
                {
                    new CacheConfiguration("IndexComposition")
                    {
                        SqlSchema = "IndexComposition",CacheMode =
CacheMode.Replicated,
                        QueryEntities = new []
                        {
                            new
QueryEntity(typeof(int),typeof(IndexComposition))
                        }
                    }
                }

            };



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

Mime
View raw message