-
Notifications
You must be signed in to change notification settings - Fork 600
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
Support for SAP Anywhere database ? #632
Comments
I can't help with SAP Anywhere, but I am using PetaPoco with SAP Hana. Although there's no support for it out-of-the-box, it's fairly trivial to create your own database provider to act as the link between PetaPoco and the SAP .net provider. See https://github.com/CollaboratingPlatypus/PetaPoco/wiki/Custom-DB-Providers |
Thanks for information. Its good to hear that it supports custom-DB, I am looking for the same. Do we have any sample project with custom DB provider using asp.net core ? And it supports any generic way to get the DB result instead of writing SQL queries (ex: get) ? I am facing issue while implementing custom provider with help of above link, error msg below: Thanks, |
Here is an example of how my database provider for SAP Hana is set up:
You will probably need to override the You would then create a DatabaseConfiguration with:
Connection string should match the format expected by the underlying connector. Then use the dbconfig to open a connection as per the examples. This will enable you to use PetaPoco's automatic SQL statement generation to fetch, update, etc (based on property attributes). |
Hi @iadaz I have implemented same code in my project but got below error for insert into database Is there any way to print the insert query which is created by PetaPoco ?
My code:
I don't find much information specific to custom provider in wiki.. |
After an error you can check the |
Hi Team,
can you please let me know the PetaPoco supports SAP Anywhere ?
note:
Inside SAP Anywhere parameterized query use ":" instead of "@"
ex : ParameterName = ":Name";
More error details :
https://stackoverflow.com/questions/30688879/why-does-sql-anywhere-ignore-the-named-parameter
Looking for :
Asp.net core
SAP SQL Anywhere (database)
Thanks,
Sravan G
The text was updated successfully, but these errors were encountered: