Exemple #1
0
        public static int Update(Driver_Attripute d, int id)
        {
            string state = $"Update Driver set Name = {d.Name}, Email = {d.Email}, Password = {d.Password} where D_Id = {id}";

            return(Connection.ExecuteNonQuery(state));
        }
Exemple #2
0
        public static int Insert(Driver_Attripute d)
        {
            string state = $"insert into Driver (Name, Email, Password) values ('{d.Name}', '{d.Email}', '{d.Password}')";

            return(Connection.ExecuteNonQuery(state));
        }