12345678910111213141516171819202122232425262728293031323334353637 |
- 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<EapAsyncHistory> Get(string filter)
- {
- string errorinfo = string.Empty;
- return CurrDb.FindListForCondition<EapAsyncHistory>(filter, ref errorinfo);
- }
- public int Update(EapAsyncHistory history)
- {
- if (CurrDb.UpdateFor(history, string.Empty) < 0)
- return -1;
- return 1;
- }
- }
- }
|