fast-member icon indicating copy to clipboard operation
fast-member copied to clipboard

Hi, Error occurred when the object has a GUID field

Open TonyWoo opened this issue 7 years ago • 2 comments

Hi, Thanks for your great library. I just found a problem, if my table has a uniqueidentifer field and C# type is GUID, then the ObjectReader.Create doesn't work, it say the GUID cannot be converted to float. How I can fix this issue? please advise. Thanks.

ObjectReader.Create

TonyWoo avatar Aug 23 '17 08:08 TonyWoo

huh, I haven't seen that. I'm overdue a release od this lib, so it might be a good time to investigate - do you have a minimal repro?

On 23 Aug 2017 9:15 a.m., "TonyWoo" [email protected] wrote:

Hi, Thanks for your great library. I just found a problem, if my table has a uniqueidentifer field and C# type is GUID, the the ObjectReader.Create doesn't work, it say the GUID cannot be converted to float. How I can fix this issue? please advise. Thanks.

ObjectReader.Create

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mgravell/fast-member/issues/41, or mute the thread https://github.com/notifications/unsubscribe-auth/AABDsN1czeYK3BzrZuODKBHm9gEQ0mo1ks5sa9-xgaJpZM4O_ptm .

mgravell avatar Aug 23 '17 09:08 mgravell

Thanks for your reply. I think it's my fault, I looks the order of property name in the members parameter should be same as the order in database. Thanks.

public static ObjectReader Create<T>(IEnumerable<T> source, params string[] members)

TonyWoo avatar Aug 24 '17 02:08 TonyWoo