예제 #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;
        }
예제 #2
0
 partial void Deleteuser(user instance);
예제 #3
0
 partial void Updateuser(user instance);
예제 #4
0
 partial void Insertuser(user instance);
예제 #5
0
 public UserViewModel()
 {
     obj = new user();
 }
예제 #6
0
 public void Delete(user user)
 {
     user.is_active = false;
 }
예제 #7
0
 // Insert/Delete
 public void Add(user user)
 {
     db.users.InsertOnSubmit(user);
 }