⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 personhelper.cs

📁 ibatis源码及帮助文档(IBatis源码+xsd+帮助)
💻 CS
字号:
using System.Collections;

namespace iBatisTutorial.Model
{
	/// <summary>
	/// Helper class for Person entities.
	/// </summary>
	public class PersonHelper : Helper
	{
		public Person Select (int id)
		{
			return (Person) Mapper ().QueryForObject ("Select", id);
		}

		public IList SelectAll ()
		{
			return Mapper ().QueryForList ("Select", null);
		}

		public int Insert (Person person)
		{
			Mapper ().Insert ("Insert", person);
			// Insert is designed so that it can return the new key
			// but we are not utilizing that feature here
			return 1;
		}

		public int Update (Person person)
		{
			return Mapper ().Update ("Update", person);
		}

		public int Delete (int id)
		{
			return Mapper ().Delete ("Delete", id);
		}

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -