12345678910111213141516171819202122232425262728 |
- using Cksoft.Data;
- using DllEapEntity;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace DllEapDal
- {
- public class AttachmentDal
- {
- private IDatabase CurrDb;
- public AttachmentDal(IDatabase db)
- {
- CurrDb = db;
- }
- public IEnumerable<Attachment> GetAttachments(string preId,ref string errorinfo)
- {
- return CurrDb.FindListForCondition<Attachment>($" and a.PreId='{preId}'", ref errorinfo);
- }
- public int Insert(Attachment attachment,string userCode)
- {
- return CurrDb.InsertFor<Attachment>(attachment, userCode);
- }
- }
- }
|