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

PostgreSQL Bulk insert dynamic object mapping #101

Open
abacusFan opened this issue Dec 15, 2021 · 3 comments
Open

PostgreSQL Bulk insert dynamic object mapping #101

abacusFan opened this issue Dec 15, 2021 · 3 comments
Assignees

Comments

@abacusFan
Copy link

abacusFan commented Dec 15, 2021

Hello there :)

I am trying to bulk insert a custom object which has json property in postgresSQL.

It's working perfectly if the property is a fixed class. by using this method:
DapperPlusManager.AddCustomSupportedType

but once I tried to use dynamic object. it does not work. column value will be null
e.g
dynamic expando = new ExpandoObject();

Could you please help,

Thanks

@JonathanMagnan JonathanMagnan self-assigned this Dec 15, 2021
@JonathanMagnan
Copy link
Member

Hello @abacusFan,

We will look at it if there is something we can do.

Best Regards,

Jon

@abacusFan
Copy link
Author

abacusFan commented Dec 15, 2021

Thank you Jon.

Either dynamic or Dictionary<String,Object> or other types are ok for me :)

as long as The json will be like
{
"Property1Name": Property1Value,
"Property2Name": Property2Value
}

Appreciate for your help

@abacusFan
Copy link
Author

Hi Jon,

Sorry to be annoying :)

Could you also support jsonb if possible.

I tried the fixed class to do bulk insert for jsonb column.

It's not working either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants