LeaFrock

Results 11 issues of LeaFrock

#### Feature 特性 CLI增加新的option,-json STJ/NTJ (当然,最终参数名称可以商榷) #### 简要描述原因 目前通过CLI使用DbFirst生成数据库实体模型,会默认绑定NewtonSoft.Json。在实际情况下,越来越多的新项目倾向于使用System.Text.Json,而不再使用NewtonSoft.Json。 Issue #633 提到STJ的易用性问题,现在(6.0.5+)大多已经解决。未支持的功能如JsonPath等,应该并不影响FreeSql做JsonMap的使用。 当前的DBFirst功能会导致FreeSql实际和NewtonSoft.Json强制绑定,如果Db表及列的数量较多,手动修改工作量巨大。希望能够完善DBFirst的代码生成功能,允许使用配置项指定生成代码所依赖的Json库。 当然,这个FR优先级可能不算高。但个人希望能将该其加入贵项目的迭代计划。 #### 使用场景 使用CLI基于DBFirst生成数据库实体类。

## Read and complete the full issue template Do not randomly delete sections. They are here for a reason. **Do you want to request a *feature* or report a *bug*?**...

### What feature or new tool do you think should be added to DevToys? Generate strongly random keys and IVs in the string format of Base64. ### Why do you...

feature
untriaged

I have the impression that I've encountered this confusion many times. Is it possible to add instructions of `JwtSecurityTokenHandler` while using it in a concurrent environment? --- #### Document Details...

### Is your feature request related to a problem? Please describe. Currently Table will always try to load data when initializing, but sometimes we may want to skip this action,...

#### 问题描述及重现代码: 若在表达式中使用Take方法,且传入的参数为0的话,会导致生成的SQL忽略`top 0`限制,从而变成查询全表。由于传入的Take参数可能来自第三方或者中间过程的输出,一旦校验不完全就可能会导致这样的情况发生。 期待的行为应该是直接返回空集合,或者干脆抛出`ArgumentOutOfRangeException`。 ```c# freeSql.Select() .OrderBy(u => u.Id) .Take(0) // 或Limit(0) .ToSql(u => u.Name); ``` 目前会被翻译为: ```sql SELECT a.[Name] as1 FROM [UserInfo] a ORDER BY a.[Id] ``` ####...

请问为什么该项目依赖Jieba.NET?我看别的语言迁移,似乎没有第三方依赖。 可以提供一个纯净的迁移(只封装OpenCC原项目的API),将Jieba.NET的部分作为单独的Nuget包发行?

### 🤔 This is a ... - [ ] New feature - [ ] Bug fix - [ ] Site / documentation update - [ ] Demo update - [...

以下2种方式: ```csharp var sql1 = freeSql.Select() .Where(a => a.Name.CompareTo("LeaFrock") > 0) .ToSql(); var sql2 = freeSql.Select() .Where(a => string.Compare(a.Name, "LeaFrock") > 0) .ToSql(); ``` 将被转译为: ```sql SELECT a.[Id], a.[Name] FROM...

Reduce code size and make inline easier for .NET 8+. Also fix some code style IDE warnings/errors.

enhancement