using Cksoft.Data; using DllEapEntity; using System; using System.Collections.Generic; using System.Text; namespace DllEapDal { public class EapAsyncHistoryDal { public IDatabase CurrDb { get; set; } public EapAsyncHistoryDal(IDatabase db) { CurrDb = db; } public int Insert(EapAsyncHistory history,ref string errorinfo) { if (CurrDb.InsertFor(history, string.Empty) < 0) return -1; return 1; } public IEnumerable Get(string filter) { string errorinfo = string.Empty; return CurrDb.FindListForCondition(filter, ref errorinfo); } public int Update(EapAsyncHistory history) { if (CurrDb.UpdateFor(history, string.Empty) < 0) return -1; return 1; } } }