[nhusers] Re: Problem when insert geometry using NHibernate Spatial and Postgis

2018-10-31 Thread Đạt Ý Đặng Huỳnh
I have fixed by downgrade npgsql connector to 3.2.7 On Monday, October 1, 2018 at 6:31:40 PM UTC+7, Đạt Ý Đặng Huỳnh wrote: > > I am using NHibernate v 5.13, NHibernate.Spatial.Postgis v5.0, Npgsql > v4.0.3 when i try insert a record into my __layer table the application > thrown

[nhusers] Criteria SpatialRestrictions.IsWithinDistance NHibernate.Spatial

2018-10-31 Thread Đạt Ý Đặng Huỳnh
I want to check if a geometry in a specified distance of another geometry but NHibernate Spatial has not implemented this method. Anyone can help me implement this method please? Link issue https://github.com/nhibernate/NHibernate.Spatial/issues/61 A stackoverflow post

[nhusers] Problem when insert geometry using NHibernate Spatial and Postgis

2018-10-01 Thread Đạt Ý Đặng Huỳnh
I am using NHibernate v 5.13, NHibernate.Spatial.Postgis v5.0, Npgsql v4.0.3 when i try insert a record into my __layer table the application thrown an exception below. NHibernate.Exceptions.GenericADOException HResult=0x80131500 Message=could not insert: [Layer][SQL: INSERT INTO __Layer

[nhusers] Re: Usage NHibernate 5 async method

2018-10-01 Thread Đạt Ý Đặng Huỳnh
istFoldersAsync(); > > > or, if you have to call this from a non-async context something like this > may work but will be less than optimal. > var tsk = _adminService.ListFoldersAsync(); > tsk.Wait(); > var folders = tsk.Result; > > > > > On Monday, September 1

Re: [nhusers] Problem when insert geometry using NHibernate Spatial and Postgis

2018-10-02 Thread Đạt Ý Đặng Huỳnh
ception: The NpgsqlDbType 'Geometry' isn't present in your > database. You may need to install an extension or upgrade to a newer > version. > > Install the Postgres extension for the database. > > On Mon, Oct 1, 2018 at 12:31 PM Đạt Ý Đặng Huỳnh > wrote: > >> I am u

[nhusers] Usage NHibernate 5 async method

2018-09-17 Thread Đạt Ý Đặng Huỳnh
Hi everyone! I am working on a project using NHibernate v.4 and i want to upgrade to v.5 to so that i can use Asynchonous function.But when i use async in my code, it doesnt return any result and stucked in await block. Here is my code without async public List ListFolders() {

[nhusers] How to add configurations for NHibernate.Caches.StackExchangeRedis?

2019-03-12 Thread Đạt Ý Đặng Huỳnh
Hi guys, I am using *NHibernate.Caches.**StackExchangeRedis* in my project. I have add the following code to set cache provider for NHibernate cfg.SetProperty("cache.provider_class", "NHibernate.Caches.StackExchangeRedis.RedisCacheProvider,NHibernate.Caches.StackExchangeRedis" ); But when i

[nhusers] Re: How to add configurations for NHibernate.Caches.StackExchangeRedis?

2019-03-12 Thread Đạt Ý Đặng Huỳnh
I finally find out the way cfg.SetProperty("cache.configuration",redisConnectionString); On Tuesday, March 12, 2019 at 2:42:36 PM UTC+7, Đạt Ý Đặng Huỳnh wrote: > > Hi guys, > > I am using *NHibernate.Caches.**StackExchangeRedis* in my project. > I have add the fo