-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Inserting data, how? #283
Comments
@rogeralsing This can be due to this documented behavior https://github.com/DarkWanderer/ClickHouse.Client/wiki/ORM-support#dapper. |
Thanks @wahmedswl , I have it working now 👍🏻 If anon objects are not supported, it would be pretty neat with an exception pointing this out and even linking to the docs. |
@rogeralsing Yes, you are right. Can you contribute this? Might be @DarkWanderer has some plans to support anonymous objects? |
Hi Sorry for late response. No, I do not plan to support anonymous objects directly in the library. However, I do plan to maintain support for Dapper, and Dapper.Contrib has support for insertion - so this is on the table Meanwhile, data insertion can be done in the "plain SQL" way: ClickHouse.Client/ClickHouse.Client.Tests/ParameterizedInsertTests.cs Lines 12 to 25 in c9ad6c5
|
I'm stuck on the most trivial aspect of just inserting data and I don't find anything in the docs that helps me with this
The calling code:
The entity:
The code to insert an entity:
It throws with the following exception:
Is it a me problem? is it a library problem? is it a Clickhouse issue?
The text was updated successfully, but these errors were encountered: