50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using Kreta.DataAccess.Interfaces;
|
|
using Kreta.DataAccessManual.Interfaces;
|
|
using Kreta.DataAccessManual.Util;
|
|
using Kreta.Framework.Util;
|
|
using SDA.Kreta.Entities;
|
|
|
|
namespace Kreta.DataAccessManual
|
|
{
|
|
internal class EletpalyaModellDal : DataAccessBase, IEletpalyaModellDal
|
|
{
|
|
public EletpalyaModellDal(DalHandler handler, GridParameters parameters)
|
|
: base(handler, parameters)
|
|
{
|
|
|
|
}
|
|
|
|
public EletpalyaModellDal(DalHandler handler) : base(handler)
|
|
{
|
|
|
|
}
|
|
public IPedagogusEletpalyamodell Get() => PedagogusEletpalyamodell.GiveAnInstance();
|
|
public IPedagogusEletpalyamodell Get(int id)
|
|
{
|
|
var entity = PedagogusEletpalyamodell.GiveAnInstance();
|
|
entity.LoadByID(id);
|
|
return entity;
|
|
}
|
|
public void Delete(int id)
|
|
{
|
|
var entity = PedagogusEletpalyamodell.GiveAnInstance();
|
|
entity.LoadByID(id);
|
|
entity.Delete();
|
|
|
|
DalHelper.Commit();
|
|
}
|
|
public void FullUpdate(IPedagogusEletpalyamodell dto)
|
|
{
|
|
var entity = (PedagogusEletpalyamodell)dto;
|
|
entity.FullUpdate();
|
|
FollowUp(entity);
|
|
}
|
|
public void Insert(IPedagogusEletpalyamodell dto)
|
|
{
|
|
var entity = (PedagogusEletpalyamodell)dto;
|
|
entity.Insert();
|
|
FollowUp(entity);
|
|
}
|
|
|
|
}
|
|
}
|