Пример #1
0
        /// <summary>
        /// Creates a new instance of Mapinfo and returns a <see cref="MapInfoSession"/>
        /// which contains the instance.
        /// <para>The returned objet can be passed into objects and
        /// methods that need it in the MapinfoWrapper API.</para>
        /// </summary>
        /// <returns>A new <see cref="ComMapInfo"/> containing the running instance of Mapinfo.</returns>
        public static IMapInfoSession CreateMapInfoInstance()
        {
            IMapInfoWrapper mapinfo = ComMapInfo.CreateMapInfoInstance();
            MapInfoSession  session = new MapInfoSession(mapinfo);

            if (SessionCreated != null)
            {
                SessionCreated(session, EventArgs.Empty);
            }
            return(session);
        }
Пример #2
0
 public Query(IMapInfoWrapper miSession, string queryString)
 {
     Guard.AgainstNull(miSession, "session");
     this.MapInfoSession = miSession;
     this.querystring    = queryString;
 }
        public MapperInfoWrapper(IMapInfoWrapper miSession)
        {
            Guard.AgainstNull(miSession, "MISession");

            this.map_info = miSession;
        }
Пример #4
0
 public GeometryBuilder(string tableName, IMapInfoWrapper miSession)
 {
     this.TableName      = tableName;
     this.MapInfoSession = miSession;
 }
 public SelectQuery(IMapInfoWrapper miSession, string queryString)
     : base(miSession, queryString)
 {
     this.session = base.MapInfoSession;
     this.query   = base.GetQueryString();
 }
 public UpdateQuery(IMapInfoWrapper session, string queryString)
     : base(session, queryString)
 {
 }
 /// <summary>
 /// Creates a new instance of <see cref="SqlStringGenerator"/> that can be used to generate SQL commands from entities.
 /// </summary>
 /// <param name="session"></param>
 public SqlStringGenerator(IMapInfoWrapper session)
 {
     this.mapinfo = session;
 }
Пример #8
0
 public MapInfoSession(IMapInfoWrapper wrapedInstance)
 {
     this.map_info    = wrapedInstance;
     this.LoadOptions = null;
 }
Пример #9
0
 public MapbasicWrapper(IMapInfoWrapper miSession)
 {
     this.session = miSession;
 }
Пример #10
0
 public MapInfoDataReader(IMapInfoWrapper miSession, string tableName)
 {
     this.MapInfoSession  = miSession;
     this.TableName       = tableName;
     this.geometryfactory = new GeometryFactory(new MapInfoSession(miSession));
 }
 public static ITable <TEntity> ResolveTable <TEntity>(this IMapInfoWrapper mapinfo, string tableName)
     where TEntity : BaseEntity, new()
 {
     return(new Table <TEntity>(new MapInfoSession(mapinfo), tableName));
 }