added stuff for jasonneumannaudio.com
parent
86c16c0c32
commit
84afbc435b
@ -0,0 +1,45 @@
|
||||
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")
|
||||
};
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
catch(Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeConnection();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Common.Library.DataLayer.DTO.Websites.JasonNeumannAudio.com
|
||||
{
|
||||
public class AboutPageDTO
|
||||
{
|
||||
public int AboutPageID { get; set;}
|
||||
public string AboutPageText { get; set; }
|
||||
}
|
||||
|
||||
public class AboutPageDTOCollection : List<AboutPageDTO>{ }
|
||||
}
|
Loading…
Reference in New Issue