Change Database from SQLServer 2008R2 to PostgreSQL

Hello.

I am planning to change the database of my project from SQLServer 2008R2 to PostgreSQL. there is any way to do it without rewriting all the project? Rgds.