using System; using System.Collections.Generic; using System.Text; namespace Ant.ORM { public interface IPersist { /// /// 保存 /// /// /// bool Save(object entity); /// /// 保存 /// /// 实体类型 /// 要保存实体的属性 /// bool Save(FieldValueCollection fields); /// /// 更新 /// /// 实体 /// bool Update(object entity); /// /// 更新 /// /// 实体类型 /// 要保存实体的属性 /// bool Update(FieldValueCollection fields); /// /// 删除 /// /// /// bool Delete(object entity); /// /// 删除 /// /// /// /// bool Delete(FieldValueCollection fields); /// /// 查询 /// /// /// object Query(); /// /// /// /// /// /// /// object Query(int pageSize, int pageNo); /// /// /// /// /// /// /// /// object Query(int pageSize, int pageNo, out int count); /// /// /// /// /// /// object Query(string filter); /// /// /// /// /// /// /// /// object Query(string filter, int pageSize, int pageNo); /// /// /// /// /// /// /// /// /// object Query(string filter, int pageSize, int pageNo, out int count); /// /// /// /// /// /// /// object Query(string filter, FieldValueCollection fields); /// /// /// /// /// /// /// /// /// object Query(string filter, FieldValueCollection fields, int pageSize, int pageNo); /// /// /// /// /// /// /// /// /// /// object Query(string filter, FieldValueCollection fields, int pageSize, int pageNo, out int Count); } }