init
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
using Kreta.DataAccess.Interfaces;
|
||||
using Kreta.DataAccessManual.Interfaces;
|
||||
using Kreta.DataAccessManual.Util;
|
||||
using SDA.Kreta.Entities;
|
||||
|
||||
namespace Kreta.DataAccessManual
|
||||
{
|
||||
public class IktatottDokumentumCsatolmanyDAL : DataAccessBase, IIktatottDokumentumCsatolmanyDal
|
||||
{
|
||||
public IktatottDokumentumCsatolmanyDAL(DalHandler handler) : base(handler)
|
||||
{
|
||||
}
|
||||
|
||||
public IIktatottDokumentumCsatolmany Get()
|
||||
{
|
||||
return IktatottDokumentumCsatolmany.GiveAnInstance();
|
||||
}
|
||||
|
||||
public IIktatottDokumentumCsatolmany Get(int id)
|
||||
{
|
||||
var entity = IktatottDokumentumCsatolmany.GiveAnInstance();
|
||||
entity.LoadByID(id);
|
||||
return entity;
|
||||
}
|
||||
|
||||
public int Insert(IIktatottDokumentumCsatolmany dto)
|
||||
{
|
||||
var entity = dto as IktatottDokumentumCsatolmany;
|
||||
entity.Insert();
|
||||
DalHelper.Commit();
|
||||
return entity.ID;
|
||||
}
|
||||
|
||||
public void Delete(int id)
|
||||
{
|
||||
var entity = IktatottDokumentumCsatolmany.GiveAnInstance();
|
||||
entity.LoadByID(id);
|
||||
entity.Delete();
|
||||
DalHelper.Commit();
|
||||
}
|
||||
|
||||
public void Update(IIktatottDokumentumCsatolmany dto)
|
||||
{
|
||||
var entity = dto as IktatottDokumentumCsatolmany;
|
||||
entity.Update();
|
||||
DalHelper.Commit();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user