Bll/UserGroup.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using ElfinNet.Model;
using ElfinNet.IDAL;
using ElfinNet.DALFactory;
namespace ElfinNet.BLL
{
/// <summary>
/// BLL Layer For dbo.UserGroup.
/// </summary>
public class UserGroup
{
#region Constructor
/// <summary>
/// Default constructor
/// </summary>
public UserGroup()
{
}
#endregion
#region Interfaces
/// <summary>
/// Insert a new usergroup record to database.
/// </summary>
/// <param name="oUserGroupInfo"></param>
/// <returns></returns>
public int Insert(UserGroupInfo oUserGroupInfo)
{
// Validate input
if (oUserGroupInfo == null)
return 0;
// Insert an instance of the UserGroup DAL using the DALFactory
IUserGroup dal = DALFactory.UserGroup.Create();
// Use the dal to insert a new record
return dal.Insert(oUserGroupInfo);
}
/// <summary>
/// Gets a usergroup record from the database.
/// </summary>
/// <param name="userGroupID"></param>
/// <returns></returns>
public UserGroupInfo Get(int userGroupID)
{
// Validate input
if(userGroupID<0)
return null;
// Get an instance of the UserGroup DAL using the DALFactory
IUserGroup dal = DALFactory.UserGroup.Create();
// Use the dal to get a record
return dal.Get(userGroupID);
}
后面还有 57 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。