/// <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); }
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; }
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; }
public MapInfoSession(IMapInfoWrapper wrapedInstance) { this.map_info = wrapedInstance; this.LoadOptions = null; }
public MapbasicWrapper(IMapInfoWrapper miSession) { this.session = miSession; }
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)); }