public Account(string customer, decimal balance, decimal interestRate, TypeAcc type) { this.Customer = customer; this.Balance = balance; this.InterestRate = interestRate; this.TypeAcc = type; }
public bool Insert(string id, string userName, string pass, TypeAcc atype) { string query = "INSERT INTO ACCOUNT VALUES( @1 , @2 , @3 , @4 )"; int rs = Provider.Ins.ExcuteNonQuery(query, new object[] { id, userName, pass, atype }); return(rs > 0); }
public CompanyAcc(string customer, decimal balance, decimal interestRate, TypeAcc type) : base(customer, balance, interestRate, type) { }
public IndividualAcc(string customer, decimal balance, decimal interestRate, TypeAcc type) : base(customer, balance, interestRate, type) { }