|
|
@ -9,10 +9,9 @@ namespace Common.Library.DataLayer.DAO.Websites.DMCDynamics.LLC
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class TestimonialsDAO : MySQL
|
|
|
|
public class TestimonialsDAO : MySQL
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public TestimonialsDAO(string server, string database, string username, string password) : base(server, database, username, password)
|
|
|
|
public TestimonialsDAO(string server, string database, string username, string password) : base(server, database, username, password) { }
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
public TestimonialsDAO(DBConnectionInformation dBConnectionInformation) : base(dBConnectionInformation) { }
|
|
|
|
|
|
|
|
|
|
|
|
public TestimonialsDTOCollection SelectAll()
|
|
|
|
public TestimonialsDTOCollection SelectAll()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -65,7 +64,13 @@ namespace Common.Library.DataLayer.DAO.Websites.DMCDynamics.LLC
|
|
|
|
DBCommand.CommandText = "Testimonials_Insert";
|
|
|
|
DBCommand.CommandText = "Testimonials_Insert";
|
|
|
|
|
|
|
|
|
|
|
|
//> Add parameters
|
|
|
|
//> Add parameters
|
|
|
|
|
|
|
|
DBCommand.Parameters.Add(GetParameter("companyName", MySqlDbType.VarChar, 255, ParameterDirection.Input, testimonial.CompanyName));
|
|
|
|
|
|
|
|
DBCommand.Parameters.Add(GetParameter("companySpokesPerson", MySqlDbType.VarChar, 255, ParameterDirection.Input, testimonial.CompanySpokesPerson));
|
|
|
|
|
|
|
|
DBCommand.Parameters.Add(GetParameter("companyTitle", MySqlDbType.VarChar, 255, ParameterDirection.Input, testimonial.CompanyTitle));
|
|
|
|
|
|
|
|
DBCommand.Parameters.Add(GetParameter("testimonialText", MySqlDbType.Text, 65535, ParameterDirection.Input, testimonial.Testimonial));
|
|
|
|
|
|
|
|
DBCommand.Parameters.Add(GetParameter("companyWebsite", MySqlDbType.VarChar, 255, ParameterDirection.Input, testimonial.CompanyWebsite));
|
|
|
|
|
|
|
|
DBCommand.Parameters.Add(GetParameter("testimonialGUID", MySqlDbType.VarChar, 255, ParameterDirection.Input, testimonial.TestimonialGUID));
|
|
|
|
|
|
|
|
DBCommand.Parameters.Add(GetParameter("testimonialID", MySqlDbType.Int32, 0, ParameterDirection.Output, testimonial.TestimonialID));
|
|
|
|
|
|
|
|
|
|
|
|
DBCommand.ExecuteNonQuery();
|
|
|
|
DBCommand.ExecuteNonQuery();
|
|
|
|
|
|
|
|
|
|
|
|