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 GetAttachments(string preId,ref string errorinfo) { return CurrDb.FindListForCondition($" and a.PreId='{preId}'", ref errorinfo); } public int Insert(Attachment attachment,string userCode) { return CurrDb.InsertFor(attachment, userCode); } } }