C# Class WPF_DB_Sample.Models.User

Inheritance: INotifyPropertyChanged
Mostrar archivo Open project: fahidnasir/DotNet-ShortCourse2015

Public Methods

Method Description
SaveUserInDatabase ( ) : long

This method helps you to save the effort when want to save User in DB. When ever you have to save User in Database you have a User's Object so why not make a method in that class to write it once. and whenever you have to save data. just call that method. and this method knows how to save a user in DB.

Private Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Method Details

SaveUserInDatabase() public method

This method helps you to save the effort when want to save User in DB. When ever you have to save User in Database you have a User's Object so why not make a method in that class to write it once. and whenever you have to save data. just call that method. and this method knows how to save a user in DB.
public SaveUserInDatabase ( ) : long
return long