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

SqlGeography support for ObjectReader? #62

Open
tippmar opened this issue Aug 29, 2018 · 3 comments
Open

SqlGeography support for ObjectReader? #62

tippmar opened this issue Aug 29, 2018 · 3 comments

Comments

@tippmar
Copy link
Contributor

tippmar commented Aug 29, 2018

I'm trying to use ObjectReader to facilitate SQL bulk copy but it doesn't seem to support SqlGeography data types. Not unexpected, I guess, but I'm wondering if it's possible to add support for SqlGeography?

@mgravell
Copy link
Owner

mgravell commented Aug 29, 2018 via email

@tippmar
Copy link
Contributor Author

tippmar commented Aug 30, 2018

Well, after some more investigation, it seems my problem may not be related to ObjectReader specifically. It's a convoluted sequence involving interfaces, auto-generated proxy classes (via AutoMapper) and ObjectReader and BulkCopy all in combination. When I create a simple test, passing a list of concrete class instances, ObjectReader and BulkCopy work just fine. I'll keep digging and reopen if it seems necessary.

@tippmar tippmar closed this as completed Aug 30, 2018
@tippmar
Copy link
Contributor Author

tippmar commented Aug 30, 2018

A tad more Googling and I turned up this issue #35 and the related SO question https://stackoverflow.com/questions/41241131/fastmember-objectreader-doesnt-work-with-inherited-interfaces - that's the error I was getting. The SO question points to a code change that fixed the problem; I don't know if that change is suitable for integration into FastMember or not.

@tippmar tippmar reopened this Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants