Last active
May 7, 2016 09:05
-
-
Save leemason/4ad73c70809e4ea3ba4ef03391c12f95 to your computer and use it in GitHub Desktop.
Data Mapper Vs Active Record
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var User = require('./user'); | |
var user = new User(); | |
user.name = 'Lee Mason'; | |
user.save(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var User = require('./user'), | |
UserMapper = require('./userMapper'); | |
var user = new User(); | |
user.name = 'Lee Mason'; | |
UserMapper.save(user); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment