Ycd.SuperFrame
1.0.2
See the version list below for details.
dotnet add package Ycd.SuperFrame --version 1.0.2
NuGet\Install-Package Ycd.SuperFrame -Version 1.0.2
<PackageReference Include="Ycd.SuperFrame" Version="1.0.2" />
paket add Ycd.SuperFrame --version 1.0.2
#r "nuget: Ycd.SuperFrame, 1.0.2"
// Install Ycd.SuperFrame as a Cake Addin #addin nuget:?package=Ycd.SuperFrame&version=1.0.2 // Install Ycd.SuperFrame as a Cake Tool #tool nuget:?package=Ycd.SuperFrame&version=1.0.2
对超图的一些地图加载、数据加载等功能进行封装,对数据集进行单例化管理。规范项目开发
1、工作空间如何打开,配置类对外开放
WorkspaceConfig config = new WorkspaceConfig();
MapStore.Instance.InitWorkSpace(config); //初始化打开工作空间
MapStore.Instance.BindWorkspace(ucMap1.MapControl); //绑定控件
MapStore.Instance.AddDatasource("testDatasource", MapStore.Instance.Workspace.Datasources["testDatasource"]);//添加到数据集管理字典里方便调用
Datasource d = MapStore.Instance.GetDatasource("testDatasource"); //获取相关数据源示例,单例模式
2、代码示例 //获取数据源,这个根据项目实际情况得到该信息 Datasource d //第一种方式,查询得到相应的字典集列表数据
List<Dictionary<string, object>> data = RecordsetHelper.GetDataRecord( d, "select a.* from New_Point a ");
//第二种方式,查询返回对应的实体数据,先定义与表相同的实体信息
List<NewPoint> dataList=RecordsetHelper.GetDataRecord<NewPoint>(d, "select a.* from New_Point a ");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- Microsoft.SqlServer.Management.SqlParser (>= 172.0.1)
- SunnyUI (>= 3.6.7)
- Ycd.SuperSql (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.