This class is a ConnectionDescriptor implementation for using FastDAO to communicate with a PostGreSQL / PostGIS database. Thought it is named "PostGreSqlDescriptor", it supports spatial queries and data if you have PostGIS installed.
Inheritance: Azavea.Open.DAO.SQL.AbstractSqlConnectionDescriptor, ITransactionalConnectionDescriptor
コード例 #1
0
 /// <summary>
 /// Construct the layer.  Should typically be called only by the appropriate
 /// ConnectionDescriptor.
 /// </summary>
 /// <param name="connDesc">Connection to the PostGreSQL / PostGIS DB we'll be using.</param>
 public PostgreSqlDaLayer(PostgreSqlDescriptor connDesc)
     : base(connDesc, true)
 {
     _coerceableTypes = new Dictionary<Type, TypeCoercionDelegate>();
     _coerceableTypes.Add(typeof(IGeometry), CreateGeometry);
 }