Giter Club home page Giter Club logo

Comments (6)

hhweijun avatar hhweijun commented on June 2, 2024

大佬,在翻阅过往的更改记录中看到了 这是个不能修复的问题

from zack.efcore.batch.

hhweijun avatar hhweijun commented on June 2, 2024

///


/// Set(c=>c.Name,"hello")
///

///
///
///
///
public BatchUpdateBuilder Set(Expression<Func<TEntity, TP>> nameExpr,
TP value)
{
var propertyType = typeof(TP);
//fix #47
Expression valueExpr = Expression.Constant(value, propertyType);
//var pExpr = Expression.Parameter(typeof(TEntity));
var pExpr = Expression.Parameter(typeof(TEntity), value.GetType().ToString());
var valueLambdaExpr = Expression.Lambda<Func<TEntity,TP>>(valueExpr, pExpr);
return Set(nameExpr, valueLambdaExpr, propertyType);
}
set 时 转换的值的参数值获取一下类型可以让枚举的值不被替换

from zack.efcore.batch.

yangzhongke avatar yangzhongke commented on June 2, 2024

抱歉,没有听明白你说的“选择默认接受为首个传递值”是什么意思,value就是一个值呀,你传什么值他就是什么值呀?
能提供一下复现的方式吗?代码是什么样的,期望是什么,实际是什么。

from zack.efcore.batch.

hhweijun avatar hhweijun commented on June 2, 2024

抱歉,没说清楚,是传入多个枚举类型。

from zack.efcore.batch.

hhweijun avatar hhweijun commented on June 2, 2024

#69 跟这个一样

from zack.efcore.batch.

yangzhongke avatar yangzhongke commented on June 2, 2024

谢谢,已经修改并发布,大约15分钟后升级到最新版Nuget即可。

from zack.efcore.batch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.