public bool Add(Investment investment) { using (IDbConnection connection = OpenConnection()) { return 1 == connection.Execute( "INSERT INTO ace_demo_investment (InvestmentId, ProjectId, AccountId, Amount, Status) VALUES (@InvestmentId, @ProjectId, @AccountId, @Amount, @Status);", investment); } }