emreeren / SambaPOS-3

Touch Screen Restaurant POS
sambapos.com
469 stars 413 forks source link

Added ability to use a custom Database and Schema #409

Open JCallico opened 7 years ago

JCallico commented 7 years ago

I recently used SambaPOS3 to simulate a POS transaction on a demo and had make some changes to make the application run using a database with a name different than the AppName and also to use a database schema different than dbo. I decided to share my changes in case somebody else is interested.

The database name is now been read from the connection string.

The custom schema name is optional and can be set directly on the local settings file.

Because of the version of EF been currently used, changing the schema requires specifying the new value for every single entity in the application. Please let me know if I missed any.