Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.4.0 版本调整说明(包含v1.3.6+) #260

Closed
2881099 opened this issue Mar 30, 2020 · 0 comments
Closed

v1.4.0 版本调整说明(包含v1.3.6+) #260

2881099 opened this issue Mar 30, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@2881099
Copy link
Collaborator

2881099 commented Mar 30, 2020

1、即将移除 FreeSqlBuilder UseEntityPropertyNameConvert 方法

原因:只对 PropertyName 生效

请改用 UseNameConvert 方法,它对 EntityName 也生效

不会影响使用的,因为其实是 AOP 转换功能,可以查看 FreeSqlBuilder.cs 代码扣出来。


2、移除即将移除 FreeSqlBuilder UseSyncStructureToLower/UseSyncStructureToUpper

FreeSqlBuilder 方法需要瘦身,这两个方法可以使用 fsql.CodeFirst.IsSyncStructureToLower 进行设置。也可以使用 UseNameConvert(ToLower) 转换。


3、移动 linq to sql 方法至扩展库 FreeSql.Extensions.Linq

原因:对 ISelect 有入侵

影响范围:ISelect.Select(...).ToList() 这样查询的方式,请改为 ISelect.ToList(...)

或者在项目中引用 FreeSql.Extensions.Linq

4、移除 FreeSql.Extensions.EfCoreFluentApi,功能移至 FreeSql.DbContext

原因:让 FreeSql.DbContext 更接近 EFCore 语法

5、移除 FreeSql.UnitOfWork.Current 静态属性

2881099 pushed a commit that referenced this issue Mar 30, 2020
- 调整 FreeSqlBuilder,准备移除 UseEntityPropertyNameConvert/UseSyncStructureToLower/UseSyncStructureToUpper 方法;#260
@2881099 2881099 changed the title v1.4.0 版本调整说明 v1.4.0 版本调整说明(包含1.3.6+) Apr 12, 2020
@2881099 2881099 changed the title v1.4.0 版本调整说明(包含1.3.6+) v1.4.0 版本调整说明(包含v1.3.6+) Apr 12, 2020
@2881099 2881099 added the enhancement New feature or request label Apr 15, 2020
@2881099 2881099 pinned this issue Nov 24, 2020
@2881099 2881099 unpinned this issue Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants