161 lines
5.3 KiB
C#
161 lines
5.3 KiB
C#
using System;
|
|
using AIMSDAL;
|
|
using AIMSModel;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AIMSBLL
|
|
{
|
|
public partial class BNotice
|
|
{
|
|
#region 插入实体操作部份
|
|
/// <summary>
|
|
/// 插入实体
|
|
/// </summary>
|
|
/// <param name="notice">实体类对象</param>
|
|
/// <returns>标识列值或影响的记录行数</returns>
|
|
public static int Insert(Notice notice)
|
|
{
|
|
return DNotice.Insert(notice);
|
|
}
|
|
#endregion
|
|
|
|
#region 删除实体操作
|
|
/// <summary>
|
|
/// 删除实体
|
|
/// </summary>
|
|
/// <param name="notice">实体类对象</param>
|
|
/// <returns>影响的记录行数</returns>
|
|
public static int Delete(Notice notice)
|
|
{
|
|
return DNotice.Delete(notice);
|
|
}
|
|
/// <summary>
|
|
/// 根据对象查询语句删除
|
|
/// </summary>
|
|
/// <param name="oql">对象查询语句</param>
|
|
/// <param name="parameters">参数列表</param>
|
|
/// <returns>影响的记录行数</returns>
|
|
public static int Delete(string oql, ParameterList parameters)
|
|
{
|
|
return DNotice.Delete(oql,parameters);
|
|
}
|
|
#endregion
|
|
|
|
#region 更新实体操作
|
|
|
|
/// <summary>
|
|
/// 更新实体
|
|
/// </summary>
|
|
/// <param name="notice">实体类对象</param>
|
|
/// <returns>影响的记录行数</returns>
|
|
public static int Update(Notice notice)
|
|
{
|
|
return DNotice.Update(notice);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据对象查询语句更新实体
|
|
/// </summary>
|
|
/// <param name="oql">对象查询语句</param>
|
|
/// <param name="parameters">参数列表</param>
|
|
/// <returns>影响的记录行数</returns>
|
|
public static int Update(string oql, ParameterList parameters)
|
|
{
|
|
return DNotice.Update(oql,parameters);
|
|
}
|
|
#endregion
|
|
|
|
#region 查询实体集合
|
|
/// <summary>
|
|
/// \查询实体集合
|
|
/// </summary>
|
|
/// <returns>实体类对象集合</returns>
|
|
public static List<Notice> Select()
|
|
{
|
|
return DNotice.Select();
|
|
}
|
|
/// <summary>
|
|
/// 递归查询实体集合
|
|
/// </summary>
|
|
/// <param name="recursiveType">递归类型</param>
|
|
/// <param name="recursiveDepth">递归深度</param>
|
|
/// <returns>实体类对象集合</returns>
|
|
public static List<Notice> Select(RecursiveType recursiveType, int recursiveDepth)
|
|
{
|
|
return DNotice.Select(recursiveType, recursiveDepth);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据对象查询语句查询实体集合
|
|
/// </summary>
|
|
/// <param name="oql">对象查询语句</param>
|
|
/// <param name="parameters">参数列表</param>
|
|
/// <returns>实体类对象集合</returns>
|
|
public static List<Notice> Select(string oql, ParameterList parameters)
|
|
{
|
|
return DNotice.Select(oql, parameters);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据对象查询语句递归查询实体集合
|
|
/// </summary>
|
|
/// <param name="oql">对象查询语句</param>
|
|
/// <param name="parameters">参数列表</param>
|
|
/// <param name="recursiveType">递归类型</param>
|
|
/// <param name="recursiveDepth">递归深度</param>
|
|
/// <returns>实体类对象集合</returns>
|
|
public static List<Notice> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
|
|
{
|
|
return DNotice.Select(oql, parameters, recursiveType, recursiveDepth);
|
|
}
|
|
#endregion
|
|
|
|
#region 查询单个实体
|
|
/// <summary>
|
|
/// 更据对象查询语句查询单个实体
|
|
/// </summary>
|
|
/// <param name="oql">对象查询语句</param>
|
|
/// <param name="parameters">参数列表</param>
|
|
/// <returns>实体对象</returns>
|
|
public static Notice SelectSingle(string oql, ParameterList parameters)
|
|
{
|
|
return DNotice.SelectSingle(oql, parameters);
|
|
}
|
|
/// <summary>
|
|
/// 更据对象查询语句递归查询单个实体
|
|
/// </summary>
|
|
/// <param name="oql">对象查询语句</param>
|
|
/// <param name="parameters">参数列表</param>
|
|
/// <param name="recursiveType">递归类型</param>
|
|
/// <param name="recursiveDepth">递归深度</param>
|
|
/// <returns>实体对象</returns>
|
|
public static Notice SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
|
|
{
|
|
return DNotice.SelectSingle(oql, parameters, recursiveType, recursiveDepth);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 按主键字段查询特定实体
|
|
/// </summary>
|
|
/// <param name="id">主键值</param>
|
|
/// <returns>实体类对象</returns>
|
|
public static Notice SelectSingle(int? id)
|
|
{
|
|
return DNotice.SelectSingle(id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 更据主键递归查询单个实体
|
|
/// </summary>
|
|
/// <param name="recursiveType">递归类型</param>
|
|
/// <param name="recursiveDepth">递归深度</param>
|
|
/// <returns>实体对象</returns>
|
|
public static Notice SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
|
|
{
|
|
return DNotice.SelectSingle(id, recursiveType, recursiveDepth);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|