📄 employeebs.cs
字号:
using System;
using HouseBE;
using HouseDA;
using System.Data;
namespace HouseBS
{
/// <summary>
/// EmployeeBS 的摘要说明。
/// </summary>
public class EmployeeBS:CommonBS
{
private HouseBE.Employee _employee;
private HouseDA.EmployeeDA _employees;
private DataSet _ds;
public HouseBE.Employee employee
{
set
{
this._employee=value;
}
get
{
return this._employee;
}
}
public EmployeeBS()
{
//
// TODO: 在此处添加构造函数逻辑
//
this._employees=new EmployeeDA();
this._ds=new DataSet();
}
#region CommonBS 成员
public void insert()
{
// TODO: 添加 EmployeeBS.insert 实现
this._employees.employee=this._employee;
try
{
this._employees.insert();
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
throw ex;
}
}
public void update()
{
// TODO: 添加 EmployeeBS.update 实现
this._employees.employee=this._employee;
try
{
this._employees.update();
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
throw ex;
}
}
public void delete()
{
// TODO: 添加 EmployeeBS.delete 实现
this._employees.employee=this._employee;
try
{
this._employees.delete();
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
throw ex;
}
}
public DataSet select()
{
// TODO: 添加 EmployeeBS.select 实现
try
{
this._ds=this._employees.select();
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
throw ex;
}
return this._ds;
}
#endregion
//查询ID
public DataSet selectByName(string name)
{
this._ds=this._employees.selectByName(name);
return this._ds;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -