Beispiel #1
0
        public UserViewModel(user obj)
        {
            this.obj = obj;

            this.id = obj.id;
            this.username = obj.username;
            this.password = obj.password;
            this.created_at = obj.created_at;
            this.email_address = obj.email_address;
            this.is_admin = obj.is_admin;
            this.is_active = obj.is_active;
        }
Beispiel #2
0
 partial void Deleteuser(user instance);
Beispiel #3
0
 partial void Updateuser(user instance);
Beispiel #4
0
 partial void Insertuser(user instance);
Beispiel #5
0
 public UserViewModel()
 {
     obj = new user();
 }
Beispiel #6
0
 public void Delete(user user)
 {
     user.is_active = false;
 }
Beispiel #7
0
 // Insert/Delete
 public void Add(user user)
 {
     db.users.InsertOnSubmit(user);
 }