Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hal-wang/sqless

一个客户端安全操作数据库的解决方案。全栈开发者福利!
https://github.com/hal-wang/sqless

asp-net-core cs csharp mssql mvc sql sqless sqlserver webapi wpf

Last synced: about 2 months ago
JSON representation

一个客户端安全操作数据库的解决方案。全栈开发者福利!

Awesome Lists containing this project

README

        

_详细介绍请查看文档: _

**一个客户端安全操作数据库的解决方案**

- 高效: Sqless 使客户端能够安全地操作数据库,而不必在编写客户端同时编写 API。全栈程序员福利!
- 安全:严格的权限控制允许用户读写特定内容,而不必担心数据库安全性。
- 简单:无需 SQL 语句,配置简单。CS 架构只需要简单的配置 WebAPI 。

### 示例

_SELECT_

```CSharp
var request = new SqlessSelectRequest()
{
Table = "User",
Fields = new List()
{
new SqlessField() { Field = "Uid" },
new SqlessField() { Field = "Name" }
}
};

var conStr = "Data Source=.;Initial Catalog=StoreTest;User ID=sa;Password=123456";
using Sqless sqless = new Sqless(SqlessConfig.GetAllowUnspecifiedConfig(conStr));
List users = await sqless.Select(request);
```