PetaPoco.Database db = new PetaPoco.Database("SYS");
/// <summary>
/// 查询
/// </summary>
/// <param name="ComID"></param>
/// <returns></returns>
public List<RC.Dal.Model.Student> GetList(Int64 ID)
{
var List = db.Query<RC.Dal.Model.Student>("WHERE ID = @0", ID).ToList();
return List;
}
/// <summary>
/// 保存(新增,修改)
/// </summary>
/// <param name="item"></param>
public void Save(RC.Dal.Model.Student item)
{
db.Save(item);
}
/// <summary>
/// 删除
/// </summary>
/// <param name="id"></param>
public void Delete(Int64 id)
{
db.Delete(new RC.Dal.Model.Student() { ID = id });
}