mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
## v0.3.20
- 修复 ToList 选择指定对象时,应附加所有字段查询返回; - 修复 Lazy 延时类与实体关系冲突 bug; - 修复 附加对象读取时,记录为空应该返回null,而不是返回非null(字段默认值)对象;
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@ -18,8 +20,39 @@ namespace FreeSql {
|
||||
public IInsert<TEntity> Insert(IEnumerable<TEntity> source) => _ctx._fsql.Insert<TEntity>(source).WithTransaction(_ctx.GetOrBeginTransaction());
|
||||
|
||||
public IUpdate<TEntity> Update => _ctx._fsql.Update<TEntity>().WithTransaction(_ctx.GetOrBeginTransaction());
|
||||
|
||||
public IDelete<TEntity> Delete => _ctx._fsql.Delete<TEntity>().WithTransaction(_ctx.GetOrBeginTransaction());
|
||||
|
||||
//protected Dictionary<string, TEntity> _vals = new Dictionary<string, TEntity>();
|
||||
//protected tableinfo
|
||||
|
||||
//public void Add(TEntity source) {
|
||||
|
||||
//}
|
||||
//public void AddRange(TEntity[] source) {
|
||||
|
||||
//}
|
||||
//public void AddRange(IEnumerable<TEntity> source) {
|
||||
|
||||
//}
|
||||
//public void Update(TEntity source) {
|
||||
|
||||
//}
|
||||
//public void UpdateRange(TEntity[] source) {
|
||||
|
||||
//}
|
||||
//public void UpdateRange(IEnumerable<TEntity> source) {
|
||||
|
||||
//}
|
||||
//public void Remove(TEntity source) {
|
||||
|
||||
//}
|
||||
//public void RemoveRange(TEntity[] source) {
|
||||
|
||||
//}
|
||||
//public void RemoveRange(IEnumerable<TEntity> source) {
|
||||
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
internal class BaseDbSet<TEntity> : DbSet<TEntity> where TEntity : class {
|
||||
|
Reference in New Issue
Block a user