NorthernLight1 / N.EntityFramework.Extensions

Bulk data support for the EntityFramework 6.5.0+
MIT License
35 stars 20 forks source link

Guid field UpdateFromQuery failed #105

Closed trzhou closed 1 year ago

trzhou commented 1 year ago

Version: N.EntityFramework.Extensions 1.7.3

1.Defined object: public class My{ public Guid? ManByOrgId { set; get; } ...... }

2.Update with UpdateFromQuery: ...... Guid? id= Guid.Parse("412b7e4c-323c-461d-899e-eb942b027f9c"); dbcontext.Mys.Where(x => x.kind.Equals("abcd")).UpdateFromQuery(u => new My { ManBySpecId = id }); ......

3.SQL statements generated by EntityFramework.Extensions 1.7.3, throw syntax error: Update .... SET ManBySpecId=412b7e4c-323c-461d-899e-eb942b027f9c ......

N.EntityFramework.Extensions is great, thanks!

jlgarciaATM commented 1 year ago

I got the exact same error.

N.EntityFramework.Extensions is great, thanks!

NorthernLight1 commented 1 year ago

This issue was resolved in the latest release v1.7.4