Skip to content

Don't let the User object be responsible for talking to database - #16

Open
mendelgusmao wants to merge 1 commit into
martini-contrib:masterfrom
mendelgusmao:master
Open

Don't let the User object be responsible for talking to database#16
mendelgusmao wants to merge 1 commit into
martini-contrib:masterfrom
mendelgusmao:master

Conversation

@mendelgusmao

Copy link
Copy Markdown

This commit is non-functional and therefore more like a suggestion than a request. The idea behind it is to let User.GetById go away and let the developer implement an external function to retrieve an User from the database. IMHO, it's something bad to let the model know the database.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant