.NETCore WebApi后端开发框架+达梦数据库测试报告
.NETCore WebApi后端开发框架+达梦数据库测试报告
目录
一、测试场景
- .NETCore/.NET WebApi后端开发框架+达梦数据库V8
- CSFrameworkV6.1旗舰版 软件开发框架
- Windows 10
二、运行 CSFramework.WebApi开发框架
打开VS解决方案,按F5运行:
WebApi服务启动成功:
三、测试连接WebApi服务器
使用SqlConnector工具连接达梦数据库,选择【WebApi服务器】后台连接方式,输入WebApi地址:https://localhost:44392
测试成功,点【保存配置】
WebApi服务接收到Api请求:api/SystemCommon/TestCornection
四、测试 CSFrameworkV6旗舰版软件开发框架+WebApi连接方式
前后端逻辑分离测试:
- 前端:CSFrameworkV6旗舰版
- 后端:CSFramework.WebApi V3
登录界面,选择【CSV6-达梦账套】
登录界面显示后台服务连接信息:WebApi->localhost:44392
WebApi接口访问日志:
>>RequestBodyMiddleware.Invoke...
>>RequestLogMiddleware.Invoke...
>>VerifyModelStateFilter.OnActionExecuting...
>>VerifySignAttribute.OnActionExecuting...
-> Check Headers Params...
-> GetAppSecretAsync...
-> Get IDataSignProvider...
-> 验证签名成功...
>>FormatResponseAttribute.OnActionExecuting...
>>RequestBodyMiddleware.Invoke...
>>RequestLogMiddleware.Invoke...
>>VerifyModelStateFilter.OnActionExecuting...
>>VerifySignAttribute.OnActionExecuting...
-> Check Headers Params...
-> GetAppSecretAsync...
info: CSFramework.WebApi.Core.RequestLogMiddleware[0]
TIME:12:12:17;
URL:/api/SystemCommon/GetSystemSettings4Program;
Method:POST;
Content-Type:application/json;
Token:;
PostBody:{"Account":"","DataSetID":""};
Times:2097(ms);
-> Get IDataSignProvider...
-> 验证签名成功...
>>FormatResponseAttribute.OnActionExecuting...
info: CSFramework.WebApi.Core.RequestLogMiddleware[0]
TIME:12:12:19;
URL:/api/sys_language/GetLanguageInit;
Method:GET;
Content-Type:;
>>RequestBodyMiddleware.Invoke...
>>RequestLogMiddleware.Invoke...
>>VerifyModelStateFilter.OnActionExecuting...
>>VerifySignAttribute.OnActionExecuting...
-> Check Headers Params...
-> GetAppSecretAsync...
-> Get IDataSignProvider...
-> 验证签名成功...
>>FormatResponseAttribute.OnActionExecuting...
info: CSFramework.WebApi.Core.RequestLogMiddleware[0]
TIME:12:12:21;
URL:/api/sys_language/GetLookupDataCulture;
Method:GET;
Content-Type:;
>>RequestBodyMiddleware.Invoke...
>>RequestLogMiddleware.Invoke...
>>VerifyModelStateFilter.OnActionExecuting...
>>VerifySignAttribute.OnActionExecuting...
-> Check Headers Params...
-> GetAppSecretAsync...
-> Get IDataSignProvider...
-> 验证签名成功...
>>FormatResponseAttribute.OnActionExecuting...
>>RequestBodyMiddleware.Invoke...
>>RequestLogMiddleware.Invoke...
info: CSFramework.WebApi.Core.RequestLogMiddleware[0]
TIME:12:12:21;
URL:/api/SystemCommon/GetSystemDatasetByUser;
Method:POST;
Content-Type:application/json;
Token:;
PostBody:{"account":"admin","password":"Snj6+Q3dGGb1ukbEi0igFw=="};
Times:100(ms);
>>VerifyModelStateFilter.OnActionExecuting...
>>FormatResponseAttribute.OnActionExecuting...
info: CSFramework.WebApi.Core.RequestLogMiddleware[0]
TIME:12:12:21;
URL:/api/tb_Factory/GetFactories4Login;
Method:POST;
Content-Type:application/json;
Token:;
PostBody:{"Account":"admin","Password":"Snj6+Q3dGGb1ukbEi0igFw=="};
Times:381(ms);
>>RequestBodyMiddleware.Invoke...
>>RequestLogMiddleware.Invoke...
>>VerifyModelStateFilter.OnActionExecuting...
>>FormatResponseAttribute.OnActionExecuting...
info: CSFramework.WebApi.Core.RequestLogMiddleware[0]
TIME:12:15:08;
URL:/api/tb_Factory/GetFactories4Login;
Method:POST;
Content-Type:application/json;
Token:;
PostBody:{"Account":"admin","Password":"Snj6+Q3dGGb1ukbEi0igFw=="};
Times:69(ms);
>>RequestBodyMiddleware.Invoke...
>>RequestLogMiddleware.Invoke...
>>VerifyModelStateFilter.OnActionExecuting...
>>FormatResponseAttribute.OnActionExecuting...
info: CSFramework.WebApi.Core.RequestLogMiddleware[0]
TIME:12:15:13;
URL:/api/tb_Factory/GetFactories4Login;
Method:POST;
Content-Type:application/json;
Token:;
PostBody:{"Account":"admin","Password":"Snj6+Q3dGGb1ukbEi0igFw=="};
Times:30(ms);
>>RequestBodyMiddleware.Invoke...
>>RequestLogMiddleware.Invoke...
>>VerifyModelStateFilter.OnActionExecuting...
>>FormatResponseAttribute.OnActionExecuting...
>>RequestBodyMiddleware.Invoke...
>>RequestLogMiddleware.Invoke...
info: CSFramework.WebApi.Core.RequestLogMiddleware[0]
TIME:12:16:28;
URL:/api/gate/login;
Method:POST;
Content-Type:application/json;
Token:;
PostBody:{"validationTicket":"#ZuBaSz+G$*FGs2+a/z3aDd3aGqo0F34f160$^","LoginUser":{"Account":"admin","UserName":null,"Password":"Snj6+Q3dGGb1ukbEi0igFw==","DBID":"Normal","DBName":"CSFrameworkV6_Normal","FactoryId":"C01","IP":"192.168.0.105","MAC":"502B73D50444","Token":null,"LoginAuthType":"LocalSystemAuth","Org1":null,"Org2":null,"Tag":null,"ClientVersion":null,"DeviceMID":null,"DeviceType":null,"DatasetIDs":null,"FactoryIDs":null,"FlagAdmin":null,"Roles":null},"Language":"zh_cn","PublicKey":"MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANWj9EQbJd37HSCXEwD1J1vC3pIOuVQgXA2aeBqbO7cUOEZE5Agvpvs87+hUBYQ38xEgP6hrom939ARKB2XDGMMCAwEAAQ==","AppId":null};
Times:619(ms);
CSFrameworkV6旗舰版软件开发框架主界面
测试系统数据库 CSFrameworkV6_System
测试用户管理 CSFrameworkV6_System.tb_MyUser
接口访问日志 - 查询用户
接口访问日志 - 查看用户详情
角色管理:CSFrameworkV6_System.tb_MyRole
测试多语言管理:
测试账套数据库 CSFrameworkV6_Normal
测试销售订单 CSFrameworkV6_Normal.tb_SO/tb_SOs
测试产品资料管理:CSFrameworkV6_Normal.dt_Product
测试图片管理: CSFrameworkV6_Normal.dt_Images
测试员工档案: CSFrameworkV6_Normal.dt_Employee
测试员工档案报表
测试可视化工作流数据库 CSFramework_Workflow
测试可视化工作流程引擎 CSFrameworkV6_Workflow.Workflow
五、软件开发框架产品介绍
CSFramework.WebApi V3.0 WebApi开发框架(.NET8+.NETCore+EFCore)
https://www.cscode.net/archive/webapi-netcore-v3/361414129516549.html
CSFrameworkV6.1旗舰版软件开发框架(Winform+.NET8+EFCore)
https://www.cscode.net/archive/csframeworkv6/391821050404869.html
CSFramework.WorkflowV2.0 - C/S框架网可视化工作流引擎系统介绍
https://www.cscode.net/archive/csframework.workflow/480793374429189.html