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
Added support for multiple schemas within a database, and support for get/delete for tables without an int primary key #9
Conversation
…ead of an int This lets us use a string as a primary key without needing to write custom inserts
…ple data attributes
…a table attribute for a class
This keeps from having to change existing implementations, while still supporting additional key types. Since the key is only used as an object anyway, there shouldn't be any type concerns anyway really.
Conflicts: Dapper.SimpleCRUD/SimpleCRUD.cs
Added some tests which required switching the test db (now uses LocalDB) as SqlCE doens't support multiple schemas. Fixed an issue where some table attributes may not include the schema property.
Added support for multiple schemas within a database, and support for get/delete for tables without an int primary key
Thanks! |
How do you specify [Table("PhotoGallery_photos",Schema = "portal.dbo")] generates desired: |
See the tests: https://github.com/ericdc1/Dapper.SimpleCRUD/blob/master/Dapper.SimpleCRUDTests/Tests.cs#L83
|
Adding the |
@mxmissile - assuming this is for SQL Server, I believe |
I see. I got it to work using a different db connection, or writing my own query. Thanks! |
This also required changing the testing database from SqlCE to localDB, as SqlCE doesn't support multiple schemas per database (which of course made that feature untestable).