Created
August 9, 2016 02:52
-
-
Save PaulDuffy3/651a1acbf19c229d5706835253ece588 to your computer and use it in GitHub Desktop.
ASP.NET Core 1 NPoco Add
This file contains 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
public User Add(User user) | |
{ | |
db.BeginTransaction(); | |
db.Insert(user); | |
db.CompleteTransaction(); | |
return user; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment