Пример #1
0
        /// <summary>
        /// Creates an instance of this class
        /// </summary>
        /// <param name="spatialDbUtility">The spatial db utility class</param>
        /// <param name="connectionString">The connection string</param>
        /// <param name="schema">The name of the schema</param>
        /// <param name="table">The table name</param>
        /// <param name="oidColumn">The object ID column</param>
        /// <param name="geometryColumn">The geometry column</param>
        protected SpatialDbProvider(SpatialDbUtility spatialDbUtility,
                                    string connectionString, string schema, string table, string oidColumn,
                                    string geometryColumn)
            : base(0)
        {
            ConnectionID = connectionString;

            _dbUtility = spatialDbUtility;
            _schema    = schema;
            _table     = table;

            _oidColumn = new SharpMapFeatureColumn {
                Column = oidColumn
            };
            _geometryColumn = new SharpMapFeatureColumn {
                Column = geometryColumn
            };

            // Additional columns
            _featureColumns = new SharpMapFeatureColumns(this, spatialDbUtility);
            _featureColumns.FeatureColumnsChanged += OnFeatureColumnsChanged;
        }
Пример #2
0
 /// <summary>
 /// Creates an instance of this class
 /// </summary>
 /// <param name="provider">The provider</param>
 /// <param name="dbUtility">The db utility object</param>
 public SharpMapFeatureColumns(SpatialDbProvider provider,
                               SpatialDbUtility dbUtility)
 {
     _provider         = provider;
     _spatialDbUtility = dbUtility;
 }
Пример #3
0
 /// <summary>
 /// Creates an instance of this class
 /// </summary>
 /// <param name="spatialDbUtility">The spatial db utility class</param>
 /// <param name="connectionString">The connection string</param>
 /// <param name="schema">The name of the schema</param>
 /// <param name="table">The table name</param>
 protected SpatialDbProvider(SpatialDbUtility spatialDbUtility, string connectionString, string schema, string table)
     : this(spatialDbUtility, connectionString, schema, table, string.Empty, string.Empty)
 {
 }