You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using Common.Library.SQL.MySQL;
|
|
using System;
|
|
using System.Data;
|
|
using Common.Library.DataLayer.DTO.Websites.JasonNeumannAudio.com;
|
|
|
|
|
|
namespace Common.Library.DataLayer.DAO.Websites.JasonNeumannAudio.com
|
|
{
|
|
public class AboutPageDAO : MySQL
|
|
{
|
|
public AboutPageDAO(DBConnectionInformation connectionInformation) : base(connectionInformation){ }
|
|
|
|
public AboutPageDTO SelectAboutPageText()
|
|
{
|
|
InitConnection();
|
|
AboutPageDTO item = null;
|
|
|
|
try
|
|
{
|
|
DBCommand.CommandType = CommandType.StoredProcedure;
|
|
DBCommand.CommandText = "about_page_select_text";
|
|
DBReader = DBCommand.ExecuteReader();
|
|
|
|
if(DBReader.Read())
|
|
{
|
|
item = new()
|
|
{
|
|
AboutPageID = GetInt("AboutPageID").Value,
|
|
AboutPageText = GetString("AboutPageText").Replace("\\r\\n", "<br/><br/>")
|
|
};
|
|
}
|
|
|
|
return item;
|
|
}
|
|
catch(Exception)
|
|
{
|
|
throw;
|
|
}
|
|
finally
|
|
{
|
|
DisposeConnection();
|
|
}
|
|
}
|
|
}
|
|
} |